问题描述
我有一个集成了Facebook Android SDK的Android应用程序.我们想设置它,因此,在用户请求下,它动态创建了一个网页,并将"类似"发送到该页面的Facebook.
但是,为了做到这一点,似乎我们需要一个用于网页的Facebook对象ID,并且该页面不会在某人物理加载页面并单击JavaScript中的类似按钮之前获得Facebook对象ID.
创建页面时,我们如何使Facebook为我们的页面分配一个对象ID?
推荐答案
您可以通过使用?id = url.
来获取网页IDhttps://graph.facebook.com/?ids = http://shawnsspace.com/plugins/
请参阅: http://developers.faceers.facebook.com/docs/docs/reference/reference/reference/api/api/#阅读选择,然后?ids =
问题描述
I've got an Android app that integrates the Facebook Android SDK. We'd like to set it up so, at the users request, it dynamically creates a webpage and sends a "like" to Facebook for that page.
However, in order to do this it seems we need a Facebook Object ID for the webpage, and the page won't get a Facebook Object ID until someone physically loads the page and clicks the like button in the Javascript.
How can we get Facebook to assign an object ID for our page when it gets created?
推荐答案
You can get the webpage id by posting to the graph using ?id= url.
https://graph.facebook.com/?ids=http://shawnsspace.com/plugins/
SEE: http://developers.facebook.com/docs/reference/api/#reading selection, then ?ids=