social media api
Posted: Mon May 24, 2010 12:09 pm
I'm trying to learn more about how social media api's work. For instance, when you're looking at a news article, sometimes it will have a facebook icon to "share" the article on facebook. If you click on the icon you might get a new popup window and if you look at the url it will be something like:
http://www.facebook.com/sharer.php?u=ht ... volatility
So, I'm assuming this sharer.php script takes the $_GET['u'] value and attaches it to your status update but how does it extract out the title of the article and the body and image, from any source you attach it too. Do all those websites that have the icon have the same xml structure or does the sharer.php script just have to guess? Any help would be appreciated.
http://www.facebook.com/sharer.php?u=ht ... volatility
So, I'm assuming this sharer.php script takes the $_GET['u'] value and attaches it to your status update but how does it extract out the title of the article and the body and image, from any source you attach it too. Do all those websites that have the icon have the same xml structure or does the sharer.php script just have to guess? Any help would be appreciated.