Uploading photos to facebook, Facebook App or Facebook Connect? - facebook

I am working on a website that allows people to upload photos to their facebook account (as if the user manually uploaded those photos to facebook), and the uploaded photos will be hosted on facebook instead of my server. Should I develop a facebook application or use facebook connect?

When you use facebook connect, you actually create a facebook application that will make it possible to "communicate" with facebook from your website.
You should know that a facebook application runs in facebook while facebook connect gives you the possibility to link whatever you have in your website to Facebook.
Though, I'm not sure if what you want to do is doable using the Facebook connect API.

Related

Use Facebook Graph API to disconnect a Facebook Page from a Facebook App

I have a website with a Facebook App that allows Facebook users to connect their Facebook pages to the App so that the website can use that Page in different ways.
But I cannot find a way to disconnect the Facebook Page from the App using a Facebook API (probably the Graph API?). The problem is that Facebook keeps sending webhook events as long as the Page is connected to the app.
Is there such a call?
That's done via the subscribed_apps edge on the page. Same as you can add a subscription via this, you can also remove it again.
https://developers.facebook.com/docs/graph-api/reference/page/subscribed_apps/#Deleting

Link facebook messenger with facebook login on app

I have a facebook messenger bot that sends a webhook to my web app. People can login to my app via facebook login.
The first user contact is normally with my facebook bot on which they can create a profile. When they make contact I take their facebook id, name, profile pic, etc.
Users can then login with facebook to my web app to enhance their profile.
My problem is facebook uses different scoped ids for messenger and their login.
How can I recognise if a user has already been on my facebook bot if they use my web app, and vice verca.
I think it has something to do with the business mapping api: https://developers.facebook.com/docs/apps/for-business but I'm struggling to understand how it works.
I am sending a get request using:
GET /me?fields=token_for_business
But the docs do not specify the full url to use. I'm also unsure if you can use this in developer mode.
facebook provides an id-matching api
for the app and pages owned by the same business manager. More informations:
https://developers.facebook.com/docs/messenger-platform/identity/id-matching

Upload one photo to Facebook fanpage

I'm using this tutorial http://pastebin.com/WpJmPYAi, and with some changes I can upload a photo to my fanpage.
But, I want to be able to upload when I'm logged out from Facebook. In my website, I need to be able to upload images to the fanpage without my account login.
Is this possible?
For example, I think: Is there any way to do this:
$page_info = $facebook->api("/".$fanpage."?fields=access_token");
Without a facebook accounts logged in, only with my app and accounts data.
You can set a stored access_token using the Facebook::setAccessToken($access_token) method.
See the PHP SDK documentation for details: https://developers.facebook.com/docs/reference/php/facebook-setAccessToken/

how to associate an application with a new-style Facebook Page of which I'm admin?

I am trying to connect a new website with a Facebook page. the website is built with Wordpress CMS, and so I am using Facebook plugin Facebook Connect to allow a Facebook Like counter button on the site and maybe other functions.
The plugin states I need to get application ID.
I do not want to do this on my own personal facebook account, but rather for the clients themselves.
I am an admin of their Facebook Page, which is done in the new style.
But it is not clear to me how to do a new app other than from my own account?
You should create the new app via https://developers.facebook.com/apps and then create a Facebook Group to administrate the new app as outlined in this blog post
There is currently no other way to create a Facebook app other than with a user account.

How to make Facebook app page invisible so it doesn't reveal identify of our users to their friends?

My site has Facebook Connect to help users with registration and to do this we had to create a Facebook app. And on my Facebook app page, I noticed that it shows list of user's friends who also connected to our site using Facebook Connect. How can I take this down so that we don't reveal the identity of our users who connect to the website with Facebook Connect? In fact, I would like to make the Facebook app page invisible altogether since we don't need it. Is this possible?