Skip to content

Instantly share code, notes, and snippets.

@irazasyed
Last active February 12, 2018 13:05
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save irazasyed/8926619 to your computer and use it in GitHub Desktop.
Save irazasyed/8926619 to your computer and use it in GitHub Desktop.
Facebook Dialog feed share example with all the properties and using YouTube App!

Learn more about Sharing Best Practices for better understanding.

V1: This version has properties but the output would be with numeric keys, Example (Google, Bing and Yahoo are the Hyperlinks/Clickable):

1: Google
2: Bing
3: Yahoo
https://www.facebook.com/dialog/feed?app_id=87741124305&ref=site&display=page&
name=Your Title Goes Here
&caption=Some Caption
&description=Some description about your product
&picture=http://lorempixel.com/1200/630/
&link=http://google.com
&actions=[{ name: 'Your Footer Link', link: 'http://google.com/' }]
&properties=[{ text: 'Google', href: 'http://google.com/'},{ text: 'Bing', href: 'http://bing.com/'},{ text: 'Yahoo', href: 'http://yahoo.com/'}]
&redirect_uri=https://www.youtube.com/facebook_redirect

V2: This also has properties but its output would be with your specified keys, Example (Google, Bing and Yahoo are the Hyperlinks/Clickable):

This SE is best: Google
This SE is Cool: Bing
This is nice too: Yahoo
https://www.facebook.com/dialog/feed?app_id=87741124305&ref=site&display=page&
name=Your Title Goes Here
&caption=Some Caption
&description=Some description about your product
&picture=http://lorempixel.com/1200/630/
&link=http://google.com
&actions=[{ name: 'Your Footer Link', link: 'http://google.com/' }]
&properties={"This SE is best":{text: 'Google', href: 'http://google.com/'}, "This SE is Cool":{text: 'Bing', href: 'http://bing.com/'}, "This is nice too":{text: 'Yahoo', href: 'http://yahoo.com/'}}
&redirect_uri=https://www.youtube.com/facebook_redirect
@AidasK
Copy link

AidasK commented Feb 12, 2018

Does not seem to work anymore, I can only see the link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment