Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to share an existing facebook post to user timeline from an iOS app?

Our app shows some Facebook posts from artists that our users follows. We want to enable our users to share posts they like back to their timeline (like the share button you see under each post in the Facebook Feed).

We tried to do this using the Facebook web dialogs, but we keep running into errors. For example: When trying to share a post of type photo: If we set a parameter "picture" with the picture url, we get an error that the feed dialog should not use a picture coming form the FBCDN.

We can share the photo as a link, but than the photo itself doesn't appear on the user timeline.

Is there a way to mimic the functionality of the built in share button?

like image 256
Shahar Nechmad Avatar asked Mar 13 '13 03:03

Shahar Nechmad


People also ask

How do you share original posts on Facebook app?

1. Locate the post which you want to share and press the Share button in the bottom-right corner of the post. 2. In the pop-up menu that appears, select Share now if you want to instantly share the post or Share to News Feed if you want more control, including the ability to add descriptive text to the post you shared.


1 Answers

Concerning the "feed dialog should not use a picture coming form the FBCDN"-problem: You might want to fetch the image url (use https://graph.facebook.com/POST_ID to get the post object containing the url) and forward the image data via your own server. There are ways to hide the original url from the client (read this post) if Facebook still complains.

like image 136
borisdiakur Avatar answered Oct 11 '22 11:10

borisdiakur