Is there any way to start a facebook chat using the messenger application. I know we can lead a user to the messenger application using intents and using their Messenger API. But I want to do is open a chat window directly with particular user using the facebook User Id.
Is that possible?
I found this post
Android Facebook sdk messaging ID mismatch
I couldn't really find much else and I was hoping the new messenger API might support that kind of an interaction?
The answer is in the first comment of the other thread: That solution does not work with App Scoped IDs, and you don´t get the real IDs anymore. Even if it would be possible, you can only get App Scoped IDs of friends who authorized your App too. Meaning, it´s impossible.
to start Facebook messenger with a particular user
check this answer dear will help you how to start with particuler user
try this...
final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("fb://messaging/" + facebookId));
But you have to know the facebook id .
Ref: How to open specific contact chat screen in various popular chat/social-networks apps?
Related
Is it possible to start an intent from my android app to select a friend from Facebook messenger and get the conversation history with him? If yes how such intent should look like? Or do I have to use Facebook SDK for that?
This is not possible for several reasons:
First of all, you would need to select friends by using /me/friends, but you don´t get a list of ALL friends. Since v2.0 of the Graph API, you only get friends who authorized your App too.
You would need to get the read_mailbox permission approved by Facebook. But that permission will not get approved for Android Apps.
If that would be possible, an App would be able to get access to the messages of the friends of the authorized user. Which would obviously be a pretty heavy privacy issue. Just so you understand what this is not possible at all.
I try using this link this. In this tutorial i post my app link only my wall. But i want to share my app link to all my friends. Same like as a XYZ invited to you to try ABCapp only in notification bar. When click on it open google play store of my app page. I want to share my app app link to app facebook friends or selected facebook friend. How can i achieve this?
To invite friends through your app you can use App Invites. Before using this feature make sure to set up your Android Facebook SDK version to 4.0 or later.
You can take a look at the overview in this link
https://developers.facebook.com/docs/app-invites/overview
For the implementation you probably need this
https://developers.facebook.com/docs/app-invites/android
https://developers.facebook.com/docs/apps/faq#invite_to_app
If your app has a Canvas presence, you may also use the Requests Dialog on iOS and Android
If your app does not have a presence on Facebook Canvas: You may use the Message Dialog on iOS and Android, or the Send Dialog on Web
I assume you don´t have a Canvas presence? In that case you should not use App Requests.
Basically what you need is the list of all the friends of user on facebook to invite them. you can get ALL friends' list only if your app is in "GAME" category.
If not, then you can still get the friend list of user , but only some, not all. refer to terms friends and invitable_friends on facebook.
So, here are few things you can do (BUT NOT RECOMMENDED AT ALL)
Change the category of your app to "GAMES" & you'll be able to get
all friend's list & then you can use WebDialog & WebDialog.RequestsDialogBuilder to invite that friends
give any link to canvas URL on facebook app setting. that link will be used only when user clicks your notification from web. that link won't affect your app in any way.
I'm not a facebook developer, i'm a newby in android/facebook integration.
I'm trying to share images with text, for some known reasons/bugs facebook won't let the share intent ACTION_SEND to work correctly, not filling extra fields like EXTRA_TEXT, EXTRA_HTML_TEXT, EXTRA_SUBJECT.
As a workaround, i'm trying to use FacebookImageShareIntent but somewhere it requires the application ID.
What is it?
Why should i need it in my android app?
Should i create a new application in developers.facebook.com/apps/? To do what?
When i access that page i see a "loginF" application that has an App ID, who created it? Should i use this App ID?
I tried googling for a while, but still don't understand...
Please, someone clarify, thanx
You need APP ID to use Facebook APIs. Use Facebook Getting Started tutorial to get your APP ID.
I want to give Auto-tweet option in my App to the user. When the user chooses the auto-tweet option then onwards users data is tweeted through his Twitter account ( but not through the App twitter account) on certain Event (predefined by the App).
Is this feasible? If so can someone please tell how to do this?
Thanks
Have a look at Android Intent for Twitter application you can use an intent to specify that you want to tweet, and then any application that handles tweeting can accept this intent. Is that what you want to do?
Is it possible to take facebook id from other
mobile application ?
Only if the app is storing it in a public place. Why not just use the Facebook SDK rather than relying on if a phone might have an app you might get the info you need from?
https://developers.facebook.com/docs/guides/mobile/#android
I doubt the extent of your app is to JUST get the id if it is use a dialog as the comment above suggests. If however, you want to interact with Facebook use the Facebook SDK.