开发者

Facebook Graph API status update like Relationship

I'm searching a few days on Facebook Api docs and on google to know how to make my status update be like the relationship status update, or when I add new friends. When te text is shown after the user name. I attached a picture to show what开发者_运维百科 I need.

Facebook Graph API status update like Relationship

Someone know how can I do that or something similar to help me search? I'm using ASP.NET, but if you know how do that in PHP or any other language will be welcome.


This is not possible using Graph APIs, these are generated when using the Facebook in a browser itself.


What you want is not so clear and you've not posted any of your current codes you're using, but i assume you're trying to status update using graph api?

To make status update on your wall, you need access_token and publish_stream permission granted by the user you want to post, here's what facebook's docs say:

Publishing

You can publish to the Facebook graph by issuing HTTP POST requests to the appropriate connection URLs, using an access token. For example, you can post a new wall post on Arjun's wall by issuing a POST request to https://graph.facebook.com/arjun/feed:

curl -F 'access_token=...' \
>      -F 'message=Hello, Arjun. I like this new API.' \
>      https://graph.facebook.com/arjun/feed

https://developers.facebook.com/docs/reference/api/

If you're using PHP, then i can provide you with a snippet for authentication and for making status update, let me know what you're trying to do more clearly and with the code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜