Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I "add friend" with Facebook's API?

Tags:

facebook

api

Does their API allow my Facebook-connected user to add a friend?

like image 419
TIMEX Avatar asked Mar 10 '10 22:03

TIMEX


People also ask

What can you do with Facebook API?

The Graph API is the primary way to get data into and out of the Facebook platform. It's an HTTP-based API that apps can use to programmatically query data, post new stories, manage ads, upload photos, and perform a wide variety of other tasks.

Does Facebook allow API?

The Pages API allows apps to access and update a Facebook Page's settings and content, create and get Posts, get Comments on Page owned content, get Page insights, update actions that Users are able to perform on a Page, and much more.

Can I use Facebook API for free?

In the newest version of the Graph API (v2. 9), we're announcing features that simplify development, making it even easier to build apps and experiences with Facebook. We're providing free access to over 140 million places around the world, the same data that powers Facebook, Instagram, and Messenger.


1 Answers

No. Adding friends is not possible through the API.

However you can direct users to http://www.facebook.com/addfriend.php?id=[USER UID]

Where [USER UID] is a valid facebook user id.

Good luck!

like image 88
Gdeglin Avatar answered Sep 26 '22 03:09

Gdeglin