0
我正在使用考拉宝石,并在我的用户界面我有一个共享链接。我如何使用帖子ID分享帖子。它可以这样做。我如何分享帖子使用帖子ID
@facebook = FacebookToken.first
@graph = Koala::Facebook::API.new(@facebook.access_token)
@graph.put_object(params[:post_id], "share",:message => "First!")
它提供了以下错误
Koala::Facebook::ClientError: type: OAuthException, code: 240, message: (#240) Requires a valid user is specified (either via the session or via the API parameter for specifying the user. [HTTP 403]
我的事情的东西许可走错了。我已经添加了以下权限的最喜欢的布尔应用
"share_item,manage_pages,publish_stream,read_stream,offline_access,create_event,read_insights, manage_notifications"
我需要一些其他的许可使用帖子ID分享信息
您是否需要Facebook-Graph-API或框架中的方法?是的,你需要使用'publish'方法,比如'POST/profile_ID/feed' – gaussblurinc
@loldop所以我可以通过put_object方法来做到这一点。 – user1683039
我使用'POST'代替。尝试使用'PUT' – gaussblurinc