我怎样才能得到一个新的网页,Facebook的对象ID? [英] How can I get the Facebook object id for a new web page?

查看:203
本文介绍了我怎样才能得到一个新的网页,Facebook的对象ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android应用程序,集成了Facebook的Andr​​oid SDK中。我们想设定,让在用户请求时,它动态地创建一个网页,发送一个喜欢Facebook的该网页。

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.

不过,为了做到这一点,似乎我们需要对网页Facebook的对象ID,并在页面不会得到一个Facebook对象ID,直到有人物理上加载页面,并点击了Javascript的类似按钮。

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.

我们怎样才能获得Facebook上为我们的页面分配一个对象ID被创建的时候吗?

How can we get Facebook to assign an object ID for our page when it gets created?

推荐答案

您可以通过使用?ID =网址张贴到图让网页ID。

You can get the webpage id by posting to the graph using ?id= url.

https://graph.facebook.com/?ids = HTTP://shawnsspace.com/plugins/

请参阅: http://developers.facebook.com/docs/reference/api /#阅读的选择呢?IDS =

SEE: http://developers.facebook.com/docs/reference/api/#reading selection, then ?ids=

这篇关于我怎样才能得到一个新的网页,Facebook的对象ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆