get facebook news feed from different sites in android app - android

I want to show(and only show) the news feed of some different facebook-sites.
In my case it is all about icehockey: i want to show the newsfeed of some differnet sites like:
https://www.facebook.com/penguins/?fref=ts
https://www.facebook.com/groups/305981342861167/?fref=ts
i am not the owner of the sites!
i only want to show the newsfeed (no comments, likes..)
authentication should NOT be necessary in my app
Is there a smart way to do this?

Please refer the below posts; you would get answer for your question!
Embed activity feed of a public Facebook page without forcing user to login/allow
Get public page statuses using Facebook Graph API without Access Token
Can you get a public Facebook page's feed using Graph API without asking a user to allow?
https://developers.facebook.com/docs/graph-api/using-graph-api

Related

Instagram API view public user photo without access_token

I am going to develop an app for a retailer and the client want to show its official instagram images in the app.
Its Instagram account is public and I see that, there is an API for retrieving user recent images.
https://api.instagram.com/v1/users/{user_id}/media/recent?clent_id=XXXXX
The document have not stated that access_token is required but when I execute this api, it says I am missing access_token.
Is it normal or I did something wrong?
Because your requested URL is wrong, it will work only after correcting the 'client_id' instead of 'clent_id'.

photo feeds from facebook api for android

How to get feeds(photos only) of a certain Facebook page via Facebook API for android?
is there a straight forward method for that.
Exactly what I need is an activity that shows feeds of photos from a certain page. that why I think this doesn't require login' in. Can I do that? and HOW?
For a page, whose photos are public you can fetch them without login without any access token, using /PAGEID/photos. For eg: http://graph.facebook.com/cocacola/photos
If you want the public feeds pf a page, you can fetch them too, without the login using the App Access Token, which you can get using the \GET request to :
/oauth/access_token?
client_id={app-id}
&client_secret={app-secret}
&grant_type=client_credentials
and use this token to query the feeds using /PAGEID/feed. For Eg: http://graph.facebook.com/cocacola/feed?access_token=APP_ACCESS_TOKEN
(I think you need the Photos not the Feeds; to which you are saying Feeds of Photos)
If you are new to facebook integration: How to Integrate Facebook Connect with Android
Try using graph api
http://graph.facebook.com/pagename?fields=photos.fields(images)
For more options check the docs

How to get a friends user wall from facebook?

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.

Android - facebook automatically post

I want to integrate an android app with facebook.
I've managed to fetch friends list and to post on wall on demand (a facebook url view is loaded and the user can post on wall whatever he texts).
I want, when the app is started and the user accepts the permisions, to post a message on wall that he is started to play my game without showing that url view for posting (an automatically post)
Can someone help me?
It's probably late and maybe you've got your answer for this question.
But for anyone else who need an answer:
First, you can use the Graph API, there is an example of how to post on
a wall.
But there is a restriction!!
Facebook is not allow us to enter a prefiil message!
The content of this message must come from the user itself!
Watch this video of Facebook on Platform Policy 2.3 Example and Explanation

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.

Categories

Resources