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?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With