我想使用Temboo Library在Facebook墙上(从Android应用程序)执行"喜欢",我看到有一个Choreo。
我的问题是所需的参数是访问令牌(像往常一样)和一个 ObjectID,我不知道在哪里可以获得合适的 ObjectID,例如与我想"喜欢"的 Facebook 群组粉丝页面相关。如何从某个 URL 转换为对象 ID?
编辑
我指定以下权限:"电子邮件,publish_actions,user_likes",如Facebook文档中所述:
请注意,类似操作需要现有的user_likes权限
我可以在墙上发帖,但是每当我尝试"喜欢"一个网络时,例如:"https://www.facebook.com/pages/Guitar/113099055370169",我都会得到:
com.temboo.core.TembooHttpException: {"output":{"Response":""},"truncatedItems":[],"execution":{"endtime":"1396561663481","id":"a5cfd72449539570145298fd4d668ba","lasterror":"A HTTP Error has occurred: The remote server responded with a status code of 403. Typically this indicates that access to the specified resource is forbidden. The data returned from the remote server was: {"error":{"message":"(#200) App does not have permission to make this call","type":"OAuthException","code":200}}. The error occurred in the HTTPSend (Facebook) step.","starttime":"1396561663246","status":"ERROR","errortime":"1396561663445"}}
编辑 18th 六月, 2014
最后,我重新承担了让我的Android用户喜欢Facebook页面的任务。我终于设法完成了WebView/Web按钮技巧,因此他们可以点击Web"喜欢"按钮,并且正确执行了类似操作。当尝试检查类似的操作是否正常时,我的问题出现了。我以两种不同的方式使用 FQL 编排,但两个查询都给出了空结果。我的测试Facebook用户肯定有几个赞,我错过了什么?
我使用 Temboo 的 FQL 查询:
http://postimg.org/image/o22cxhxo9/
http://postimg.org/image/5xzccuzzt/
您可以使用不同的 Choreo 返回该值:
https://temboo.com/library/Library/Facebook/Searching/FQL/
下面是一个屏幕截图,向您展示如何使用此 Choreo 获取 URL 的对象 ID。
以下是我使用的输入:
- 访问令牌:
yourOwnAccessToken
- 条件:
url="http://mashable.com"
- 字段:
url, id, type, site
- 表:
object_url
希望这能解决您的问题。祝你好运!