I want to create an application with use of Facebook.
some highlights of app is like
Connect facebook and google accounts. Gather info for user profiles: name, bio, profile picture.
1]fb-events that the user has created (or attended) and add them to my applications's calendar in the app
2]The app should create your fb-events in the app with the following information:
- Cover photo
- Title
- About text
- Location
- Time (Tuesday, March 17 at 19:00 - 21:00)
But read this link
is it possible please guid me
Thanks
Pragna Bhatt
You can do this by two ways
1. using offical documention of fb
https://developers.facebook.com/docs/android/getting-started
2. using social auth
https://code.google.com/p/socialauth-android/
both are easy but if you do by social auth your other social sites like twitter,linkdn and instragram and many more will also cover with facebook.
Related
Can I get Instagram Full Name and Profile picture without Access Token. It seems I can't find any API for that.
I tried with:
https://www.instagram.com/{username}/media
But, I get only media if user has pictures and if user is public.
I found some android apps get Full Name and profile picture only with Username, I need something like that in my application.
I was trying to do similar kind of thing last month but Actually there are no official APIs for that ,
there is this website https://openinstagram.com idk how those guys crated this APIs but you can try this:
https://api.openinstagram.com/{username}
and replace the text username with any real username and you will get profile picture and full name of that user even if the user is private,
this is not the only example, there are multiple website running on same kinda thing website like web.stagram and websta and it's mentioned on there website that they aren't certified by Instagram (because they are using unofficial APIs)
hope this would help.
I use facebook login in my app. Once the users are logged-in I can get their basic facebook info such as display name, email, and phot url.
I'd like to get their facebook friends list. I think I can get it "directly" with firebase but I don't remember how and I cannot find any info about it. I think I first have to tell Firebase to get friends list when people login with facebook, then I sould be able to get it with a method such as firebaseAuth.getCurrentUser().getFriendList().
Do you know how to get facebook friends list with firebaseAuth ?
Thank you,
Alex
It is feasible, but only the friends that also use your app. The trick is to add a scope to your login method. In Angular it looks like this
this.afAuth.auth.signInWithPopup(new firebase.auth.FacebookAuthProvider().addScope('user_friends'))
That scope at the end is the trick. Then, you need at least two users that are friends on facebook to login. You will note the popup is different as it now asks permission for the user's friends.
The response will include an access token. Then you can use that token to request the user's friends that are also using the app with a GET request like this
https://graph.facebook.com/v2.11/{facebook_uid}/?fields=friends{name,id}&access_token={access_token}
Note I'm using a particular version, but you should change that to whatever you need.
generally obtaining user's all friends list from Facebook is not possible, they removed this option years ago, with API v2.0 introduction... more info about and useful suggestions HERE
there is an official FB API called Graph API and HERE you have some doc about friend lists
and the Firebase... well, this is Google's product and it have nothing to do with Facebook... You are probably using FB mail address for creating an account in Firebase service/database, but it is keeping only this data plus some additional attributes if set (like photo or visible name).
firebaseAuth.getCurrentUser() returns FirebaseUser object, which have THESE methods - like you see: logpass, name, photo url and only few more methods. no option for getting friends list, because there is no method to set them, and no possibility to get this list from FB lib/API
I would like to implement the following feature in my android app.
We have a Facebook group and whenever a user post's something, it should be lively read on my android app(including post content,likes and comments).
Is it possible with currently available Facebook API's?.
If you manage the group, you can authorize with the user_managed_groups permission and get the feed with /group-id/feed. There is no realtime API for groups, so you have to check for new items with a Cron Job (for example).
More information and example code: https://developers.facebook.com/docs/graph-api/reference/v2.4/group/feed
How to get Facebook friends's phone, email, address and others friends detail information use Facebook Android SDK 4.4 .
Now I can only get firends id and profile picture by use https://graph.facebook.com/me/taggable_friends? access_token
Sorry dude you cant!
Facebook's new API dosent allow you to take any information such as email,phone number etc
The only chances are
1. me/taggable_friends - Where you can get an Id for tagging your friends and profile picture ( your friends must also use the same app I think)
2. me/invitable friends - This one is for games only to invite people into
your game
I am unable to find the exact link for you but I've read it in developers.facebook itself.
Here is the changelog
I want to read my friends posts (feeds?, all posts but for a specific user only) from his user wall.
I need all (posts, feeds, statuses) that i see when i look at his page directly from the website.
I use the android sdk and i tried the graph api and rest method.
My app is registered and i have logged in facebook to get the access token (permission: read_stream)
but i dont get that infos that want to.
Please help.
Thx.
How about testing your Graph API call in the Graph API Explorer?
https://developers.facebook.com/tools/explorer/
In my case, I could get my first 10 friends' feed (wall) with the url https://graph.facebook.com/me?fields=friends.limit(10).fields(feed)
Note that I used field expansion of the Graph API.
http://developers.facebook.com/docs/reference/api/field_expansion/
You need them to actually use your app and grant full permissions via the graph API.
You cannot simply 'grab a friends wall'. You must do that via your app and it needs the permissions to do so from the user in question.