0

我目前正在 facebook 上开发社交阅读器应用程序,但我对操作步骤有点困惑。在提交我的操作的打开图表中,在重现您的操作的步骤中,我不知道我必须做什么。在我的应用程序中,我需要单击阅读按钮将我阅读的文章发布到墙上。提前致谢。

4

1 回答 1

0

You've to use read action on article/website object.

To create those objects you've to use og meta tags i.e. include some meta tags of this kind:

<meta property="og:url" content="URL of this object">

Read more: http://developers.facebook.com/docs/opengraph/objects/builtin/#article

In app dashboard, under open graph tab, enable read action and article/website object for use.

-- Done configuring --

Let's say you've created the article object at http://mysite.com/path-to-article-I-just-read then following PHP snippet will publish the read action on user's activity feed.

// Assuming the app has permission: publis_stream
$facebook->api('/me/news.reads?article=http://mysite.com/path-to-article-I-just-read', 'POST')

Once you've completed developing the application, you'll have to submit it for Facebook to review.

于 2012-05-02T11:50:56.840 回答