1

Why does Facebook stream.share return undefined when a user publish a status or click "Skip"?

I'm currently trying to use this, so if the user doesn't publish the content, no action should happen, but if the user publish the content an action should happen.

How do I do this?

1 Answer 1

1

You can use the graph API feed dialog to publish a post and know if it was published or not by the user:

FB.ui( { method: 'feed', message: '', name: 'name here', caption: 'caption here', description: 'description here', picture: 'picture url here', link: 'http://yourlinkurlhere.com', actions : [{name : 'action name', link : 'action link'}] }, function(response) { if (response && response.post_id) { // Post was published } else { // Post did get published } }); 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.