i'm doing simple android project using phonegap. I have to send private message to my friends in facebook from my application. Is there any way to send message through Url?
Until recently Facebook didn't support the send dialogue on mobile, so you couldn't do that.
With their push of Facebook messenger, they started supporting private messages on mobile - https://developers.facebook.com/docs/ios/share#message-dialog
Not idea if there's a PhoneGap plugin that supports it, I'm looking for one as well...
Check Direct URL Example section in send dialog page
https://www.facebook.com/dialog/send?app_id=123050457758183&
name=People%20Argue%20Just%20to%20Win&
link=http://www.nytimes.com/2011/06/15/arts/people-argue-just-to-win-scholars-assert.html&
redirect_uri=http://www.example.com/response
This is a sample link given in documentation.
On m.facebook.com, no display is needed, nor is any other display than 'touch' allowed as we always default to 'touch'.
So that doesn't seem to solve the problem.
Facebook says it's a bug by design https://developers.facebook.com/bugs/507406422635550?browse=search_511bd57f912f84e18364257
Related
I want my app to send private messages to user's friend. So I've read the official facebook tutorial but I found only examples of sending with the help of the messeger. So I asked myself: "And if the user hasn't got Messager installed? There is no way for him?". Maybe I should use Intent with SEND_ACTION (I saw this constraction somewhere).
So the question: "Is there a way of sending messages without the help of the Messager?" and if there is, could you plese post the example or the link.
Thanks in advance
The only ways to send a message to another user are the Send Dialog and the Message Dialog.
If they donĀ“t work without the installed Messenger, there is no other way.
I am currently developing an Android app using the Facebook API. One module of my application consists in adding a friend (knowing the ID) and I would like to add a friend through the FB Dialog object.
I used the Facebook object with dialog method:
http://developers.facebook.com/docs/reference/androidsdk/dialog/ .
as well as the FbDialog class to try adding a friend through a dialog:
http://developers.facebook.com/docs/reference/dialogs/friends/ .
However, as it is written in the documentation only feed and oauth are supported through this dialog. As a consequence, when I use this dialog trying to add a friend, either it redirects me to my browser and the AddFriend web dialog, or it successfully open a dialog but with a message saying that this is not supported.
My question is: is it possible to have this dialog working with the Add friend mechanism in spite of what the documentation says? Maybe one of you guys has found a trick to do so. Or maybe it is just not possible, and I have to stay with this method (that is opening the web browser), which I find not very user-friendly for my app.
Thanks in advance!
I would like to know is there any way to send a message to a friend in facebook from an android app.(Not wall post).Googled a lot about this topic but didn't get any proper solution.Guide me to some reference or blog
I am not sure about native application but you can do it from HTML5 application using javascript:-
https://developers.facebook.com/docs/reference/dialogs/send/
If no other solution place the script in an html file and load the same from the native app
The facebook technical documentation looks like an ape threw it's own excrement at a website - and that's how useful it is too...
So I have this web app (for android devices) and I need to authenticate using oAuth (since facebook's "kaleidoscope API policy" requires that their APIs are never the same if you look at them twice).
I need to show the login screen and I would like it to open in a dialog box rather than a whole new page, since multiple pages aren't supported on all android devices.
This is what I have so far:
HTML:
<fb:login-button></fb:login-button>
Javascript:
FB.init({appId : XXXXX,status : true, cookie : true,xfbml : true, oauth:true});
Right now I get the full size PC style login dialog, but I want the nice pretty touch/mobile dialog. Any ideas?
You can fix the issue by using a link that they recommend with a slight modification:
Their Link:
http://www.facebook.com/dialog/oauth?client_id=YOUR_APP_ID&redirect_uri=YOUR_URL&display=touch
Your Link
http://m.facebook.com/dialog/oauth?client_id=YOUR_APP_ID&redirect_uri=YOUR_URL&display=touch
Notice the change of www to m.
Have you checked out the Facebook SDK for android? It has full source code. It also use oAuth and show complete Facebook dialog. Here is link
https://github.com/facebook/facebook-android-sdk/
I am trying for a facebook integration on my android application.
My requirement is to read each news feed as and when it comes, and to display it using a toast.
All the sample application I see on net are based on the web GUI.
Can anyone help me with a sample code or hint to read the updates into a variable/string in my application?
Regards,
Dhanesh
using this after login in facebook dialog..
Facebook fb = new Facebook(APP_ID);
String newsfeed=fb.request("me/home");
System.out.println(newsfeed);
for get user news feed....
I'm guessing it's easiest done using Facebook Android SDK (you need permission for your application to access someone's news feed);
http://developers.facebook.com/docs/guides/mobile/#android
And Graph API documentation is a good read too;
http://developers.facebook.com/docs/reference/api/
Maybe there's some better examples but I found those documents rather complete while I was dealing with Facebook accessing.
Check out the Facebook API at http://developers.facebook.com/
Have you looked at facebook's owns api. Mobile Apps. If they don't have a solution on getting new news, then theres probably no clean api to get news an you have to turn to a scrape api or write your own scrape functions.