从Instagram的帖子没有显示在Facebook的Open Graph API起来
我已经与Facebook OpenGraph API的问题。每当我可以选择使用/家庭或/喂请求数据时,没有从Instagram的帖子的出现了。
I have an issue with Facebook OpenGraph API. Whenever I request data using either '/home' or '/feed', none of the posts from Instagram showed up.
我一直在谷歌上搜索周围,显然有些人提出无解了同样的问题呢。我看了一些,不仅影响从Instagram的职位问题,也是其他第三方应用程序/设备/平台。
I've been googling around and apparently some people raised the same issue with no solution yet. And I read some that the issue not only affecting posts from Instagram, but also other third-party app/device/platform.
公布,即使Facebook的页面开发票上似乎有点死了(没有延续)。链接:https://developers.facebook.com/bugs/110563582419837/
Even the ticket posted on Facebook's dev page seems somewhat dead (no continuation). Link: https://developers.facebook.com/bugs/110563582419837/
如果任何你们也无意中发现了这个问题,并有一些想法/指针/链接,请不要共享,让我们讨论一下。
If any of you guys also stumbled on this issue and has some ideas/pointers/links, please do share and let's discuss it.
大部分AP preciated。干杯!
Much appreciated. Cheers!
有在这个Facebook的bug跟踪2 bug报告:
https://developers.facebook.com/bugs/110563582419837和https://developers.facebook.com/bugs/202119973248747
There are two bug reports in Facebook's bug tracker about this: https://developers.facebook.com/bugs/110563582419837 and https://developers.facebook.com/bugs/202119973248747
其核心原因在于照片附加到的Open Graph 作为行动的用户生成的照片而不是通过正规的照片上传API
The core reason is that the photos are attached to Open Graph actions as User Generated Photos and not via the regular Photo upload API.
因此,定期的照片权限不授予访问他们,你需要用户特别允许你发布该行动应用程序访问自己的Open Graph的活动。该bug报告上面被接受,这似乎是在与用户生成照片的行为的情况下监督的基础上,但它也可能是设计在这种情况下,我在下面列出了作为一种解决方法是唯一支持办法做到这一点:
As such, the regular photos permissions don't grant access to them and you need the user to specifically allow you the access their Open Graph activity for the app that posted the actions. The bug reports above are accepted on the basis that this appears to be an oversight in the case of actions with user generated photos, but it could also be by design in which case what i've outlined below as a workaround would be the only supported way to do this:
如果你特别需要申请的Instagram(或其他的Open Graph应用程序的照片),照片的用户,你可以要求的 的权限来访问张贴该应用程序的操作。
If you specifically need to request Instagram (or another Open Graph photos app) photos for a user, you can ask for Permission to access the actions posted by that app.
有关Instagram的照片,你可以通过请求 user_actions做到这一点:instapp 的权限,一旦你这样做在 Instagram的照片专辑将不不再显示为空,而Instagram的活动将在
饲料
连接。
For Instagram photos you can do this by requesting the user_actions:instapp
permission and once you've done that the Instagram Photos album will no longer appear to be empty, and the Instagram activity will appear in the feed
connection.
要找出命名空间的任意应用程序,访问 https://graph.facebook.com/<APP ID&GT;
并查找命名
字段,
To find out the namespace for an arbitrary app, access https://graph.facebook.com/<APP ID>
and look for the namespace
field,
例如。对于Instagram的,以 https://graph.facebook.com/124024574287414/?fields=id,namespace
A调用返回:
e.g. for instagram, a call to https://graph.facebook.com/124024574287414/?fields=id,namespace
returns:
{
"id": "124024574287414",
"namespace": "instapp"
}
从我自己的 /饲料
连接,以获取样本照片中的 read_stream
, user_photos
, user_actions:instapp 的权限,方法是:
A sample photo from my own /feed
connection, retrieved with the read_stream
, user_photos
, user_actions:instapp
permissions, is:
{
"data": [
{
"id": "[SNIPPED]",
"from": {
"name": "[SNIPPED]",
"id": "[SNIPPED]"
},
"picture": "[SNIPPED]",
"link": "https://www.facebook.com/photo.php?fbid=[SNIPPED]",
"icon": "https://fbstatic-a.akamaihd.net/rsrc.php/v2/yb/x/StEh3RhPvjk.gif",
"privacy": {
"value": ""
},
"type": "photo",
"object_id": "[SNIPPED]",
"application": {
"name": "Instagram",
"namespace": "instapp",
"id": "124024574287414"
},
"created_time": "2013-01-07T17:33:04+0000",
"updated_time": "2013-01-07T17:33:04+0000",
"comments": {
"count": 0
}
},
我还可以访问 /照片
我的'的Instagram照片具有相同权限专辑的连接,并且可以访问所有的Instagram采取的行动(即照片)在 / ME / instapp:以
I can also access the /photos
connection of my 'Instagram Photos' album with the same permissions, and can access all Instagram 'take' actions (i.e the photos) at /me/instapp:take