Facebook Permissions for mobile application? - facebook

i want to publish images from mobile app to server,server to Facebook. what are the steps needed to get approval from facebook?
Note:
1 ) MobileApp--->Facebook(Login)
2 ) MobileApp--->Server(Sending AccessToken, UserId, Images, UserComments)
3 ) Server------>FaceBook(For sharing).
Am creating mobile applications for both iOS and Android, In which am using Facebook login and share functionalities. Once the user logged-in through facebook i will take the access token and account id from the particular user and saved it into database in my server. On share screen i am showing customized UI for posting images where user can give their own comments,If the user press the share Button i send that Images and user comments to the server,there they will post the images and comments from server directly along with the UserId and AccessToken of that particular user to the facebook. what are the basic steps needed to get the approval from facebook for publish_action?please suggest some ideas...

The Review Guidelines can be found here:
https://developers.facebook.com/docs/apps/review/login
Please refer to them if you have questions concerning the process.

Related

Permissions to create album and upload photos to app facebook page

We have an application on Facebook, and page, connected to it. There is also a web-site. Web-site have lots of photo-albums, that we'd like to transfer to Facebook app page. Plus we want to add functionality to the site, that when user uploads new photo album there, it's also created on Facebook app page. That's the only place photos will be uploaded to - no other FB pages or users, only our app page.
So far, from what I read in Facebook docs, it seems that we require two spesific permissions for this: manage_pages and publish_actions.
I tryed to request these permisssions in our FB app. Screencast was attached, showing, how user is creating an alum on our web-site, and I wrote a note, that we need these permissions to photos be also uploaded to FB.
Permissions query was rejected by FB with the following answer: Please show the completed post on the pages timeline. Possibly meaning, that they want to see on screen-cast, how album appears on FB app page timeline after it's created on the web-site.
I don't really understand, how this can be shown, if we do not have required permissions for this (otherwise we wouldn't request them). Maybe they mean that album should be created manualy, and then added to screencast, as if it was created programaticaly, just to make our intensions clear?
So, basicaly, here are two questions:
are manage_pages and publish_actions correct and only required permissions for creating albums/uploading photos to FB app page?
how can I show on the screen-cast, that photo album is uploaded to app page after certain actions on the web-site, if we do not have permissions to do that programmaticaly. Should album be added there maually?
Update for #CBroe, for our discussion in comments.
I perform the user login in the following way:
const loginOptions = {
scope: 'publish_pages,manage_pages',
return_scopes: true
};
$(document).on('click', '.facebook-login', function(e) {
FB.login(function(response) {
//...
}, loginOptions);
});
I'm not asked about permissions in login modal window. After this, if I check my permissions with me/permissions, I see, that required permissions are granted. But still, when I try to create an album with post query to pageId + '/albums', I receive the following message: (#10) Application does not have permission for this action.
By the way, I'm testing this not on production app, but on it's test version. But I suppose it should still work.
You misunderstood the process. Any user with a role in your app - admin, developer, tester - can be asked for any permission without review; explicitly so that you can build and test your app properly, before you submit it for review.
This is also an - intended - "loophole" around the review process, if your app is not intended for use by the general public. So if you only want this app to post to your page in the name of the page (the album and photos will appear as created/uploaded and owned by the page, not the Facebook user profile belonging to the user of your app) - then only you, or a page admin that you add to one of the roles in your app, needs to grant those permissions, and therefor you don't even have to get it reviewed. (Not at least regarding those two permissions, for the intended purpose. If your app requests other permissions from general users for a different purpose, those still need to be reviewed.)
This is explained in the App Development FAQ: My app is only used by a small number of people, who are all listed in the Role section of the App Dashboard - do I need to go through Login Review?
(If you want the albums created and the photos to be posted in the name of the FB user profile of your app users, then things are different - then you need to get the functionality reviewed of course. Not sure if users can even create albums on pages though, or whether they are only able to post to existing ones, you'd have to check.)

Facebook Graph API - Pictures posted to Fan page by app are not showing to all users

I am writing a Facebook App for my organization. We want to automate posting pictures to certain albums on our Fan page using the graph api. I have created the Facebook app in Facebook. My app requests publish_actions and manage_pages permissions in order to post the photos to the albums. I have written all the code to make it post the pictures. I have successfully posted pictures to albums on our Fan page using the app. I have NOT submitted my app to Facebook for "Review" to be approved.
Problem:
Only my user can see the photos in the albums that were posted by the app. I have editor permissions on the Fan page. I am the only developer of the app. If I add a tester or another developer to the app, that new user can see the photos that have been posted to the fan page by the app. So, my guess is that Facebook has to review and approve my app before the photos that are posted by the app can be viewed by all users. But I have found no documentation to prove my theory. Am I right or have I done something else wrong? I don't want to go through a 7 day wait for the review and approval and still have the same problem. Please let me know.
No Facebook doesn't need to approve it. You just need to take the app Live. There is a big Live button under Review & Status

Implementing comments and notifications using Facebook plugins

I have a reviews website where I want to integrate Facebook social plugins. I initially thought of integrating facebook comment plugin where users can write their reviews for the products I have listed on my site. But that seemed like laying waste to my own review functionality.
Here's the flow I came up with:
create a facebook app for the website
Users write a review and post it to their facebook profile
When some action happens on the review like when it is voted up or replied to, the user who posted the review to facebook gets notified via the facebook notification center
I fetch the likes, replies on facebook post and display them on my website on the review
Is it possible to implement this workflow? I basically want to send notifications to user from inside my website not from the facebook application I created.
This is possible using apprequests. One requirement for this to work is your website and facebook canvas app must be registered under the same 'app' (ie have the same appID) and be under the same base domain.

Allow non admin users to upload a photo a Facebook Page

I am trying to write a facebook app using Facebook C# sdk 5.1.1. The app should let the users to upload a picture to a Facebook page. I was able to write the app where only the admins of the page are able to upload the picture but not users. Even if the user has liked that page I am not able to do it.
I know its possible because on iPhone or from web site you can visit a page and write something on wall or share a photo. But I am not able to figure out how to do it using Facebook API.
the user of the application needs to grant the publish_stream permissions.
You can then make a call to
https://graph.facebook.com/<page_id>/feed?message=<yourmessage>&picture=<picture_url>&access_token=<access_token>&method=POST.
You can try this first by using the Graph API Explorer
Hope this helps.

Facebook API Registration

1)If two users(A & B) logs into the website(http://site.com). Both(A & B) have registered in the website with normal user registration (not FB register). Both(A & B) will have access to all parts of the site with all user provisions.They can write their reviews in the website and can do so and so.This is happening right now.
Note:Let us assume the users A and B are already friends in the Facebook.But they don't know each other in our website.
2)If two users(X & Y) logs into the website. Both(X & Y) have registered in the website with facebook registration. Both(X & Y) will have access to all parts of the site with all user provisions.They can write their reviews in the website and can do so and so.This is happening right now.
Note:Let us assume the users X and Y are already friends in the Facebook.But they don't know each other in our website.
What i am going to do:
a)If the user A logs into the system, we need to show facebook login button in some page to link his facebook account. If he wish to link , he need to give his FB login details,then we need to show the friends of him who are all also the users of my website. He may have so many friends with his facebook account, but in this part we need to show B details because he is already user of the site and also his facebook friend as we stated above.
If the user A has someother facebook friends(D,E,F) who are also registered users in our site then we will need to show all of those user details with their recent activity in the website under his FB linking page.
2)This is the samething need to do for FB registered users(X,Y) also.(Similar to http://runkeeper.com)
Technical Agenda:
1)First type of user(A,B):
During the linking of facebook(facebook login), we are going to update the user table row values with his facebook details and then we need to show his FB friends activity in the website by using the FB session data created for his/her FB login and now i will be able to show his Friendslist.
Problem:
The same user(A or B) logout from the website and relogin with his user login details. In the user table we already having his facebook id details, using that we need to show all of his FB friends. The Facebook api uses the Session value to show the datas with the api call like $frnd=$facebook->api('/me').Now there is no session for this user.
Please suggest me anyway to come up with this technical part , because there is no clear documentation to follow .
2)Second type of user(X,Y):
They are going to login with the existing FB details to the site, we need to just show there FB friend activity in the website.
This is definitely possible as you describe. What web platform are you using for your site. PHP, ASP.NET, or another? As you have experienced, the documentation is sometimes lacking. If you are using php, it will likely be a little easier to get everything working, because the examples all seem to be in php.
I will have to give you a more detailed answer tomorrow, but I will need to know which platform you are using for your website. Also, it wasn't very clear to me, did you say that users are already logging in to your site using facebook authentication?
Eric