URL Links with functions

From Facebook Developer Wiki (FbDevWiki.com)
(Redirected from PHP Links with functions)
Jump to: navigation, search

Redirect URLs with special functions

Add a friend

http://www.facebook.com/addfriend.php?id=FRIEND_ID

Send Message to a friend

http://www.facebook.com/message.php?id=FRIEND_ID&subject=XXXXX&msg=XXXXX

Add App to Page

<a target="_blank" href="http://facebook.com/add.php?api_key=YOUR_APP_KEY&pages=1&page=YOUR_PAGE_ID">PAGE NAME</a><br/>

Goto Page Selection Page (If user authorized "manage_pages", he can select a page on this site, where he wants to install the application on)

http://www.facebook.com/add.php?api_key=YOUR_APP_KEY&pages

Send Message

http://facebook.com/?compose&subject=[SUBJECT]&message=[MESSAGE]&id=[FBIDOFRECIPIENT]&sk=messages

Feed Dialog

http://www.facebook.com/dialog/feed?
app_id=123050457758183&
link=http://developers.facebook.com/docs/reference/dialogs/&
picture=http://fbrell.com/f8.jpg&
name=Facebook%20Dialogs&
caption=Reference%20Documentation&   description=Dialogs%20provide%20a%20simple,%20consistent%20interface%20for%20applications%20to%20interact%20with%20users.&   message=Facebook%20Dialogs%20are%20so%20easy!&
redirect_uri=http://www.example.com/response

URLs information in XML

Stats URL

http://api.facebook.com/restserver.php?method=links.getStats&urls=http://www.facebook.com
Personal tools
Namespaces
Variants
Actions
Navigation
Graph API
FQL
Toolbox