Is it possible to send a friend request through Android Facebook API? - android

I am trying to create an Android app and I want to send a Facebook friend request through Android Facebook API. I have spent some time but couldn't find an interface for this. Is this possible to do this through Facebook API if I know the person's Facebook id?

It is recommended that you use the Friends dialog: see http://developers.facebook.com/docs/reference/dialogs/friends/ for details.

Related

Facebook Integration Fetch All Post Data

I have an app page on Facebook.I want to fetch all post of my app page in my app.i know that it is possible from Facebook part api but i am not implementing that so any one can help me with proper stepping.
This is posibble with using facebook api for android.
https://developers.facebook.com/docs/android/
You need this instruction - https://developers.facebook.com/docs/sharing/android

android send facebook message from my application

I want to send facebook message (private message) or share a new post from my application using the facebook account logged in from Facebook application or ask the user to log in if there is no Facebook application installed,
I have read that facebook's API (Graph API) that helps to do so is now deprecated,
is there a workaround? another solution? can i use (Graph API) even it is deprecated (will facebook disable it)?
thank you in advance
it seems that Facebook no longer supports this feature on the new Graph API version,
i implemented a solution using native Http requests.

Sending A Friend Request In Facebook

I already read a post here How to send friend request using Facebook dialogs on Android?
However, I'm not sure how to implement the advice. It seems like the accepted answer is now unavailable from facebook. And the second answer, which seems to be how people do it now, I'm not sure what params to use and I can't find it anywhere in the facebook docs.
Here is some info on how to send requests from facebook.
https://developers.facebook.com/docs/android/send-requests
I suggest you download the sample app (FriendSmash) to see how they implement Facebook api on Android application

Retrieving list of Facebook friends who use iOS/Android

I'd like to target a message to my Facebook friends who use iOS, and separately, Android. If I'm going to recommend them a particular app, for example, I'd like to ping only those who have the right OS. Presumably Facebook has this information. Is there a way for me to retrieve it?
I do not think Facebook would expose this kind of information on their API. What you could do is use Parse and its Installation class. By doing so, you will get specific device information of each of your users. Then you can use the Parse Push SDK to target specific users based on this information. As an added bonus, Parse also offers Facebook integration, so it might be the tool you are looking for.
You can use the Facebook Message dialog for iOS and Android to let people send messages to their friends via Facebook Messenger. See https://developers.facebook.com/docs/android/share#message-dialog and https://developers.facebook.com/docs/ios/share#message-dialog
However, in v2.0 of the API there is no way to find out which of a users non-app-using friends are using Facebook on which platform - and in any case, the dialogs don't let you pre-fill the recipients.
If you want people to invite their friends, but want the recipient to end up being redirected to the correct (iOS or Android) version of your app, I suggest sharing the same URL, and then doing user-agent detection when someone clicks on the link to determine if you want to redirect the users to Google Play or the Apple App Store. Services like Deeplink.me may provide this as a hosted service: https://www.deeplink.me/

How to connect facebook and twitter from android application

I have application which connects facebook and twitter for sharing information for my app. I need help to get API key for facebook and twitter networking. I don't know how to get that key for my android app.
For Twitter, try using
http://twitter4j.org/en/index.html
It has docs, examples etc for you to browse.
For facebook connectivity use following link might it can help you .
https://developers.facebook.com/docs/mobile/android/build/
For facebook connect example in android
http://www.codeproject.com/Tips/457153/How-to-integrate-Facebook-Twitter-Linkedin-in-Andr

Categories

Resources