简体   繁体   中英

Post to facebook-wall

I suppose this question is asked here many times before, but I couldn't find any solution that works for me.

It is a very common thing, you see all over the internet. A user can add a piece of clothing to my website with some pictures. After he has done so, I want to give him the opportunity to share it on his facebook-wall with a picture, a description and link to my site.

Can anybody help me on my way, because I can't find a good starting point.

You need to send a Post object over to the Users.stream connection. For instance, take a look at the following tool to play around with the API call. Click "Get Access Token" and grant under "Extended Permissions" the "publish_stream" call. You can try an simple POST to your wall by clicking "Add a field", and then add a field with Name 'message' with the value set your message.

https://developers.facebook.com/tools/explorer/?method=POST&path=me%2Ffeed

This is the documents describes the structure of the Post object. It looks like you want to take a look at the 'picture' field and also the 'link' field.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM