Import Facebook Contacts to my application using Angular

51 views
Skip to first unread message

Entrytest Team

unread,
Jul 25, 2015, 8:28:01 AM7/25/15
to AngularJS
I am creating an application and using angular as my js framework.i wanted to import the contacts of  facebook user(who will provide his email and password) to his account on my application. How i can do that using angular..i have done an extensive RnD and found almost nothing about about it.Any help will be appreciated.Thanks in advance for help. 

Sander Elias

unread,
Jul 25, 2015, 9:08:01 AM7/25/15
to AngularJS, pkent...@gmail.com
Hi entrytest,


There is functionality for that in the facebook API. Basically there is a async call that will provide the list you want to JS. Just code it inside a service, and you can pick it up wherever you need it in angualr.

Regards
Sander

Entrytest Team

unread,
Jul 25, 2015, 9:10:48 AM7/25/15
to AngularJS, sande...@gmail.com
you got any example??which could help a bit doing so???and one thing more, even if i get that list how i will be able to send the a notification to get added to my website???

Sander Elias

unread,
Jul 25, 2015, 9:16:39 AM7/25/15
to AngularJS, pkent...@gmail.com
Hi Entrytest,

You can find the relevant api here. You must register your app in the facebook developers console to be able to use their api.
Once you have done that. You can wrap it in the same way $http wraps around xmlHTTPrequest. Just retreive the data, and pass it over to your code where you need it.
use a controller to hook it up to your view.

Regards
Sander

Entrytest Team

unread,
Jul 25, 2015, 9:18:44 AM7/25/15
to AngularJS, sande...@gmail.com
let me fetch the list first and then i come back to you.Thanks
Reply all
Reply to author
Forward
0 new messages