大家好,我最近在Facebook上遇到了一些问题。我有以下代码:
class StaticPagesController < ApplicationController
before_filter :fb_auth
def index
my_fql_query = 'SELECT eid, name, pic_cover,start_time, end_time, location, description,venue FROM event
WHERE eid in(SELECT eid FROM event_member
WHERE uid IN (SELECT page_id FROM place
WHERE distance(latitude, longitude, "47.81", "13.04") < 1000)) ORDER BY start_time desc'
@rest = Koala::Facebook::API.new(@oauth.get_app_access_token)
@data = @rest.fql_query(my_fql_query) # convenience method
@hash = Gmaps4rails.build_markers(@data) do |data, marker|
marker.lat data["venue"]["latitude"]
marker.lng data["venue"]["longitude"]
marker.content data["name"]
end
end
def fb_auth
app_id = 'my id'
app_secret = 'my secret'
@oauth = Koala::Facebook::OAuth.new(app_id, app_secret)
end
它会列出特定地点的Facebook上的所有活动,并在Google上创建标记。
直到最近几天,一切正常。然后我打电话给@ oauth.get_app_access_token_info,它返回了一些奇怪的访问密钥。{“access_token”=&gt;“635332713179979 | wijp_7qZJ_hdjHPl_UOMquTliMI”}
它无法调用任何事件。我希望你能帮我解决这个问题。我发布了Access Token,因为它只显示调试器上App的名称,即使我指定了一些特殊权限
由于