我在 rails 3 中使用 koala gem。我使用以下答案来获取我的页面的永久访问令牌。出于测试目的,我已授予此访问令牌的所有权限。
public_profile, basic_info, read_stream, read_mailbox, read_page_mailboxes, rsvp_event,
email, read_insights, manage_notifications, manage_pages, publish_actions, user_birthday,
user_religion_politics, user_relationships, user_hometown, user_location, user_likes,
user_activities, user_interests, user_education_history, user_work_history, user_website,
user_groups, user_events, user_photos, user_videos, user_friends, user_about_me,
user_status, user_games_activity, user_tagged_places, user_actions.books,
user_actions.music, user_actions.video, user_actions.news
现在从 rails 控制台我执行以下操作:
access_token = "some_string"
@user = Koala::Facebook::API.new(access_token)
@attachment = {:name => "Link name", :link => "http://www.example.com/", :caption => "{*actor*} posted a new review", :description => "This is a longer description of the attachment"}
@user.put_wall_post("This is some text", @attachment)
该操作返回以下内容:
Koala::Facebook::ClientError: type: GraphMethodException, code: 100, message: Unsupported post request. [HTTP 400]
但是我的页面墙确实显示了该帖子。我想知道可能是什么问题?