Android Facebook SDK - How To Query Facebook Friend Requests - android

I have the Facebook SDK for Android used in my app. I can't seem to find any examples or documentation on how to use the SDK code to get Friend Requests. I have the permission "read_requests" set. Does anyone know the graphPath parameter that should be used for Friend Request?
example: "me/????????"

me/friendrequests
https://developers.facebook.com/docs/reference/api/user/#friendrequests

Related

videos json not found in facebook android sdk

Today,I use the facebook android sdk to develope app.
I want to get my facebook's the list of videos,but I get it as follow.
https://graph.facebook.com/v2.3/me/videos
{"data":[]}
I find the request command "/{user-id}/videos",but it can't get the useful data.it's empty.I don't know how to solve it.
ps:In my facebook homepage,I have two public videos.

Scringo Facebook , app id logcat issues , Facebook login works with Parse SDK not with Scringo

I use parse sdk and scringo in my app , parse works fine for my login with facebook so app_id is set correctly , but when login via scringo it just shows please wait
any help !!
Logcat
Scringo(11060): You need to set the facebook app id in the manifest. See https://developers.facebook.com/docs/tutorials/androidsdk/3.0/upgrading-from-2.0-to-3.0/#login
how to go ahead with facebook sdk and scringo , the site is not informative and even the api docs dont explain much , no reply over email so i have to turn to SO for help
EDIT:
I use broadcast receiver now as per their guides , how to login correctly
http://www.scringo.com/docs/android-guides/popular/handling-login-status-changes/
What you're describing is a problem common to all Facebook libraries, you need to create an application on Facebook and get an id/key (http://www.scringo.com/docs/android-guides/popular/connect-to-social-networks/), most libraries then require that you set it in the manifest. I haven't used this library, if you want to try using https://github.com/sromku/android-simple-facebook I can provide more help (if you need it, Simple Facebooks guide is pretty good), otherwise this hopefully makes it clear what you're missing
According to their quick start guide, Scringo it turns out also has it's own App Ids which you get through a dashboard, take a look here: http://www.scringo.com/docs/android-guides/quickstart/
I had the exact same issue.
I fixed it by adding my scringo app id in the scringo.properties file under the assets folder of my project:
scringo.app.id="your_scringo_app_id"
Hope it helps.

By Using Facebook Graph API, How to read Facebook wall?

I am using the facebook API in my app, i know how to post message on wall. my requirement is, i want read the wall information of user recent status information through code .
How can i achieve this...
for example. from my facebook account i want to get the latest status information.
Here's a great example of using the GraphAPI to do that
https://graph.facebook.com/me/feed?access_token={}
Try it out here: https://developers.facebook.com/tools/explorer
EDIT
I stumbled across this the other day. There's a connection from the user object called statuses, which filters the stream even more than feed. As with many graph calls, you can add ?limit=N to limit the result set. So this new way I discovered would look like:
https://graph.facebook.com/me/statuses?limit=1&access_token={}
You should use a third party API such as Easy Facebook SDK. It allows you to do what you are trying to do with ease.
U should check it out here:
http://developers.facebook.com/blog/post/385/

Facebook news feed reader on android

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.

How to post a Msg on Facebook using graph in android without web-view?

After implementation of twitter in my app Now i try to implement Facebook for my app, and I found Facebook SDK for android
I use that code for login, but problem is that I want to publish a msg on a buttons click without opening web-view. I found few links on this but no one works for me.
I exactly want that same thing
How to post on facebook wall using Facebook android SDK, without opening dialog box
I use the answer for but it five following error...Even I have allow application to use my information.
Key description expected byte[] but value was a java.lang.String. The default value was returned.
01-24 10:37:33.567: DEBUG/Tests(479): got response: {"error":{"type":"OAuthException","message":"(#200) The user hasn't authorized the application to perform this action"}}
Use the Android SDK and make sure to request the publish_stream permission.
use this SDK defenately heplful to u
https://github.com/facebook/facebook-android-sdk
You need an auth token and use it with Graph API.
You can get the token via mFacebook.getAccessToken() method.
Assuming mFacebook is an authenticated Facebook instance (via authorize method)
You should have requested permission"message" when you called authorize on the Facebook object.
Regards stéphane

Categories

Resources