How can I get the Facebook object id for a new web page?

£可爱£侵袭症+ 提交于 2019-12-19 04:22:33

问题


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?


回答1:


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=



来源:https://stackoverflow.com/questions/7210721/how-can-i-get-the-facebook-object-id-for-a-new-web-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!