Graph Api - manage multiple Facebook accounts - facebook

I have a question about Graph Api from Facebook. We want to create tool to management accounts in facebook and groups releated with them.
Basic functionality of tool is possibility to add acounts to the system, and then add you can add multiple facebook accounts to each of them. Then, system get all posts from groups releated with facebook accounts.
I did research, and I know quite what is possible and what no, but many endpoints of API requires app review. My question is about this review - wheater app like that, when one user can add multiple facebook accouns and use data (like posts, comments) from them is allowed by facebook and will pass the review?

That depends on what exactly you mean by “accounts” …
Facebook pages? Sure, you can let your app user add as many of those as they like, for the purpose of managing them, reading feed data, etc.
User profiles? That would not really make sense, because every person is only allowed to have one personal profile on the platform to begin with. And adding other people’s profiles (by having them authorize your app, using their access tokens on behalf of someone else) is likely not going to fly in review either.
when one user can add multiple facebook accouns and use data (like posts, comments) from them is allowed by facebook
“Using data” is rather vague as well; what you can and can’t do with user data is outlined in the Platform Policy: https://developers.facebook.com/policy

Related

How to make a facebook app that automatically shares posts from a facebook page on my personal account?

I have a page and every time I post an update, I have to ask my Social Media team to share it from their personal accounts to increase the reach. I wish to automate this process by making a facebook app.
The app is supposed to share every new post automatically from accounts of those who signed up for the app.
I tried to look up for such apps, but couldn't find any. Is there some constraint that doesn't allow the existence of such apps?
If no, how can I create one? I have fair coding skills but haven't worked on developing a facebook app before.
Thanks.
Autosharing/Autoposting is not allowed, prefilling is not allowed either.
Platform policy: https://developers.facebook.com/policy/
That being said, publishing on a user wall is explained in the API reference, including example code: https://developers.facebook.com/docs/graph-api/reference/user/feed#publish

Permanently associating a website's account to facebook account

I have the task to integrate some commercial sharing stuff into a website.
The idea is that the user a) logs in/registers in the website, b) the user connects his user account with his facebook account - by adding and accepting the website application.
Here comes the interesting part - is there a way of linking the facebook account with my website's account so that I can send them updates and promotions directly to their walls programatically?
In the application dialog, it's clearly noted that the user allows the application to write to the user wall so they accept and agree this. Then, for example, if I want to send them a promotion or update directly on their wall using the fb application api, how can I achieve this? All the tutorials I've read consider the user using the Facebook Login
The concrete idea is something like weekly promotion feed that my clients want to allow customers to allow being posted directly on their walls. As I don't have any experience with facebook development, I'd appreciate knowing how, if at all possible, this can be achieved?
Most of what you're suggesting is against policy, and isnt' technically possible either as users need to come back to the app once every 60 days for you to have a valid access_token for them.
The Authentication docs explain how to get access to a user's information with their permission, and the Permission documentation explains which permissions grant access to which functions or fields.

multiple facebook comments, multiple tweets(multiaccount)

I am not a big expert on Facebook and Twitter APIs and I would definitely appreciate some introduction and possible guidance in my project.
This is what I am trying to do, and I wonder first of all if this is even possible.
I am building WP widget with checkbox option for user to allow generation of comment on his facebook wall and tweet with his twitter account. Comment is supposed to pick up values from custom input fields and build itself that way.
Simultaneously I want to generate post on my fb and twitter accounts regarding new user using my widget.
Is this possible to do? Could you give me links to documentation that is essential to make this one work. Otherwise what is your suggestion as a closest alternative effect.
Many many thanks!!
hmm - looks similar to your other question. I explained there how you should start with FB. With Twitter, it's very similar:
First you need to create an app: https://dev.twitter.com/apps/new
Using that app's credentials, you have to ask user to allow your app to post on user's behalf (i.e. you need to obtain an access token): https://dev.twitter.com/docs/auth/obtaining-access-tokens
After you have access token, you can use REST API to do whatever you want: https://dev.twitter.com/docs/api - including posting a tweet.
Regarding:
Simultaneously I want to generate post on my fb and twitter accounts
regarding new user using my widget.
it's no different from the above approach - but you should use your own twitter account name (or /me/ in Facebook). Of course you have to authorize your own app to do that.

Facebook - public posts not appearing in Graph?

I am currently trying to get the posts for a specific user from Facebook's Graph API. I have done this numerous times before using a php script I have developed; but the problem this time seems to be on Facebook's end, not mine.
I am trying to get the posts from (replacing TOKEN with an access token):
https://graph.facebook.com/100001558773450/feed?access_token=TOKEN
The graph won't show any posts by the owner of that page but will show everyone else's posts, and as far as I can see the posts are marked as public, and there are no privacy settings set on the account that would stop it from adding the posts to the graph.
Any ideas?
Thanks,
Nick
Check that you have requested the manage_pages permission to give you full access to the page (if you need access as the "page owner").
Using the access_token you've got, according to this documentation there are three different things that you can select feed, statuses and posts.
I'd give those three a go from https://graph.facebook.com and if what you get back is what you require.
https://graph.facebook.com/100001558773450/feed?access_token=...
https://graph.facebook.com/100001558773450/statuses?access_token=...
https://graph.facebook.com/100001558773450/posts?access_token=...
You need to check the "profile" privacy settings (what to share with apps). But most importantly, this is against Facebook ToS!
You can't use a user profile to represent your business, you need to use Facebook pages instead!
More can found here:
Why should I convert my profile (timeline) to a Page?
Since profiles
(timelines) are for meant individual people, they aren't suited to
meet your business needs. Pages offer more robust features for
organizations, businesses, brands, and public figures, which you can
learn more about here.
Further, maintaining a profile (timeline) for anything other than an
individual person is a violation of Facebook's Statement of Rights and
Responsibilities. If you don’t convert your profile (timeline) to a
Page, you risk permanently losing access to the profile (timeline) and
all of your content.

Must a Personal Profile be Used to Access the Facebook Graph API?

I'm trying to access Facebook data using the Graph API from an external commercial application. I've created a login for my company and gather that I need to register a Facebook App in order to use the Graph API.
However, I am confused about the Facebook requirement to associate a Personal Profile (a real person) with the Facebook App. Why must a person become connected to my organization's application?
What if I leave the organization? Will the company I worked for need to pick another employee in order to access the Graph API?
Surely I am missing something.
Your question here seems to be about the Facebook API in general and registering an app for it, rather than the Graph API per se. The answer to the general question is that, as with the Twitter API and certain Google APIs, the personal account is used as part of the process of validating that the app is tied to a real person. Luckily, there's a good solution in place for handling when app developers no longer work for a company: another app developer can remove them from the app. You can list someone else on your team as a developer of the app and they will have the same rights to edit it as you do.