Posting on facebook group using facebook page - facebook

I would like to know whether it is possible to post on facebook group using facebook page with graph API or not.
I have been struggling finding solutions for this.

Pretty sure that that’s not currently possible.
https://developers.facebook.com/docs/graph-api/reference/v9.0/group/feed#publish says the requirements include that a user access token is used, and that the permission publish_to_groups must be granted, and the description of that permission also uses phrasing that indicates pretty clearly, that this is supposed to be used to publish as a user, not a page.
https://developers.facebook.com/docs/permissions/reference/publish_to_groups

Related

Facebook Graph API - Deprecated publish_actions alternative

We have an application that uses the Graph API to publish content on a FB User account using publish_actions permission. This is now deprecated and I am trying to figure out if there is an alternative way to make this happen. After searching for answers in SO I am still not sure if this is possible. According to this post it is not - however other posts and FB documentation itself indicate that the Sharing API is a valid option, although I am not sure if that's totally true. What I need to do is publish a post with no user interaction other than authorizing the app to publish content. Is this possible with this new security model?
Thanks

Are there any alternatives to Facebook's /{user}/home deprecated api?

Facebook removed the /{user}/home api on October 6, 2015.
I'm wondering if anyone knows if there are any alternative methods to access news feed data.
I've worked with /{user}/feed but of course that only shows data for the currently logged in user.
I've tested with my wife to be sure and she can only she posts on her wall and I can only see posts on my wall and neither of us can see each others posts no matter what permissions are set on them.
I'd like to think that currently logged in user could access any data via the api that they could via the site (assuming they've granted the proper permissions of course.), but this doesn't appear to be the case.
Of course I am particularly interested in the news feed and I suspect that the there is no alternative but I don't want to give up yet.
I'd like to think that currently logged in user could access any data
via the api that they could via the site
No, that would be a privacy issue, because your app could access data/posts of users who did not even authorize your app and no one knows what you do with the data. So the answer is no, there is no alternative.

Facebook API for Share returning empty results set

I am new to Facebook API. I am building a Facebook app to fetch all the name of people who shared, commented and liked a post in a tabular format. I am able to get the like and comment details through Facebook API but can not find and proper API to get the share details.
I am using
https://graph.facebook.com/post_id?fields=sharedposts&access_token=my_access_token.
This API is returning an empty result set. And I have granted all the available permission to the access_tokn. Can anyone tell me ,Is there any other API that I can use. I saw a option of scraping the Facebook page for share,but I don't want to go that way because Facebook keeps on updating every thing.
I'm having the same problem as you, but I think I'm going a little step forward.
Try adding a limit to your sharedposts and maybe it will return some data:
Try this way:
https://graph.facebook.com/post_id/sharedposts?access_token=my_access_token&limit=1000
That should work for a regular post.
EDIT: Maybe the problem could be that althought you have granted all the perms to the token, the people who share that posts have to accept that permission too.
Otherway your JSON won't return any data.
The /sharedposts endpoint will -only- retrieve posts from users who have -also- granted your app. This means that even though a post might be public on a users' timeline, unless they have also granted your app permissions, you will not be able to retrieve that post.
For example: a user posted to a page and the post is public. This post can be retrieved with an access token. Let's assume that the user also shared this post to their own timeline. But, since the user has not granted permissions to your app, you will not be able to see this post using the /sharedposts edge on the original post (on the page). This also holds if the user shared their post publicly to his timeline.
This behaviour is by design; the API is more restrictive in returning user data than the website is. This holds for multiple endpoint and this is one of the examples where it is the case.
Source: https://developers.facebook.com/bugs/1404733043148335

How can i show the wall (feed) of my page to app on facebook?

How can i show the wall (feed) of my page to app on facebook? As i see in the page
www.facebook.com/kesha?sk=app_178091127385 and
www.facebook.com/pages/Khanduna-Yengu-Nangsu-Amuktang/187317137978077
I want show the wall(feed) of my page to my app of facebook. Please Help me.
I also try and see graph api as below
graph.facebook.com//feed
But Fail,
Please Help any one.
As I understand your question, you want to take the wall of your page and show the content of that on another page controlled by an app you have made, so that is the question I will answer.
There are a couple of things you need to do.
Facebook now requires you to have an access_token to get that information. You can get this in two different ways. Either you get your users permission to grab an access_token for them, or you create an access_token for one of the admin users with offline_access and manage_pages permissions.
There are problems with both cases:
1: Getting an access_token per user requires people to give permissions to your app which is quite annoying if they just gain access to the contents of the feed.
2: Having one access_token is also a problem seeing as Facebook puts a limit on how many requests you can make per access_token in a given time.
You need to balance these things out if you want the feed to be shown. Which case would you most likely use? If you don't have many users the second case might be the best, but if you go over the request limit no content will be shown and that could confuse your users.
Anyways.. Once you are past the access_token problem, you can access the information by getting the content from the page:
https://graph.facebook.com/YOUR_PAGE_ID/feed?access_token=YOUR_ACCESS_TOKEN.
You then get a nice json output you can use. If you are using the Javascript API you can simply use the information here:
http://developers.facebook.com/docs/reference/javascript/FB.api/
If you are ever unsure how to get the information you need there is a nice tool for that developed by Facebook called Graph API Explorer which you can find here:
http://developers.facebook.com/tools/explorer/

Graph API get information on facebook link shared

is that possible we can get the information from facebook API whether graph or REST or FQL regarding user sharing. Such as video or post or anything can share via facebook and it is shared by a list of user, with profile id or user name. I found something like this http://appshack.tv/2011/03/likes/ but it is just the counter, lack of information. Any way can do? Coz I found that facebook not stated everything in the documentation. Some trick is found from third party side.
No you can't get the user ids. Facebook will do their best NOT to share the user id with you "unless" they (the users) authorize your application.
And guess what....you can't even get the list of the users who are using YOUR application! (You can only get the count!)
Check this answer.