Does Facebook SDK allow publishing a post on a user’s wall through graph API without showing a share dialog window each time from mobile apps?
I am using Facebook Graph API to publish posts from app to user's wall.
Requirement is: Post a feed to fb without showing share dialog each time i.e., ask user's permission only once (for example: this app will post your feeds to fb too) and don't show share dialog for other upcoming posts.
Does Facebook allow this?
During the Facebook login process, can we ask user to grant permissions to post on his behalf on Facebook and post on his wall from application later without share dialog?
Answering my own question,Facebook does allow users to post feeds from an application to user's wall on facebook wihtout dialogues using graph API.
However, you will need to submit your application for review on facebook. Until this process is not complete, only those people who are marked as developers in project settings of project on developers.facebook.com will be able to see test posts.
Facebook requires you to give users a proper control over sharing on facebook if you are implementing facebook sharing without feed dialog. If you don't meet the criterias laid down by facebook, your application will not be accepted by facebook to use graph API.
Here is a link to Facebook Review principles: [https://developers.facebook.com/docs/apps/review/]
Related
I have been working on a mobile application. It has some locked features. To open them, user should share the web page of my application on Facebook. I'm using share dialog to make it. I'm publishing the Facebook post's details on my web page with using graph api and postId which comes from onsuccess.
https://developers.facebook.com/docs/android/troubleshooting#faq_288512448203790 in this page Facebook says I need "publish_actions" permission to get the postId while I'm using share dialog.
But, https://developers.facebook.com/docs/facebook-login/permissions/v2.5#reference-publish_actions in this page it says "if you are using share dialog do not request this permission."
And if I use custom dialog, facebook does not accept to share my web page.
So, my question is; What should I do to get "publish_actions" permission ?
you can still get the approval, but explaining it to facebook review team and user must be aware of the hidden posting and one more thing giving incentives or forcing users to share is not permitted by facebook policies.
I have a server with REST api & a native android app.
What I want is to give users ability to register and login using their facebook account: if user is not registered yet - then it taps the Login with Facebook button, grant me basic permissions and I create an account on my server; if the user is already registered - then he just logs in and can use the app.
Can you give me any links to resources where this flow is being described?
Because I really can't understand how it should work.
Should I use facebook SDK for android, get user data from it and then send to my server? Then how do I manage user after this...
I only need facebook for user registration and login, all app functionality will be based by custom data from my server.
Greatings, Graykos.
I will give you few resources what I think we will be useful for you:
Login with Facebook. Official docs Facebook Developers I.
Login Flow with Facebook. Official docs Facebook Developers II.
Testing a Login Flow. Official docs Facebook Developers III.
The right way to implement Facebook login for your app. LaunchKit.
Old question about this teme, which is here. In this case, you probably will need to update some methods.
If you have some questions about this when you develop your Facebook login, let us know, in SO!
Have a good day!
I just need to post some text and Image on the Facebook wall of my app's user.
The Facebook app registered in developers.facebook.com doesn't have "publish_actions" permission by default. I already have submitted request for this permission but its taking long to get approved.
Meanwhile seeing my friend doing this post operation thorugh ios app without this "publish_action" permission I am curious do i need this permission to post some text and image on users wall at all? Please help me..
You dont, if you are using open graph:
Reference: The Share dialog lets people publish stories from your app without Facebook Login or the publish_actions permission. However you still have to send your app for review.
The best part is that a user can tag people in a post built upon graph API. As a sample app I would suggest you check how Scrumptious works, it comes prepackaged in the FB SDK.
You can check this link: Android: How to share image with text on facebook via intent?
Use intent sharing for normal text and image post
Publishing
You can publish posts by using the /{user-id}/feed, /{page-id}/feed,
/{event-id}/feed, or /{group-id}/feed edges.
When creating a Post for a Page if you use a user access token the
post will be in the voice of the user that posted it. If you use a
page access token, the post will be in the voice of the page.
Source.
Upload Photos to a User's Profile
This example covers uploading a photo to the current User's profile
using the Graph API and the Facebook SDK for PHP.
It assumes that you've already set your default app id and secret, and
acquired a FacebookSession using an access token or one of the login
helper classes found here. You must have requested the publish_actions
scope when logging in the user for this to work.
For more information, see the documentation for GraphObject,
FacebookRequest, and FacebookRequestException.
Source.
As you can see, you need the publish_actions privilege to post to wall a post with picture and text. You need a review as well.
I'm using Unity as my engine and connection the Facebook in my game, I want to add a feature that the user can post a story regarding the game.
I tried it with Soomla SDK, the "SoomlaProfile.UploadCurrentScreenShot" but the facebook guys decline my app permissions review saying that I cannot fill user textfield and the user should write his own text to publish.
I tried to use the embeded FB API "FB.Feed" but its asking after login to manually aprove the post permission even when it should be aprroved because it in the embbeded facebook dialog
Can this be done in any other way?
I am using Facebook plugin to show comment box.
I am facing problem with facebook session maintenance i.e if user logins using facebook dialog(browser),then user is able to comment in the comment box in my app.
But If the Facebook login in the app was done using the native Facebook application, then the user is prompted to first login to comment in the comment box, which is some what weird for user since he/she already did the Facebook login initially.
The reason for it may be that facebook login using facebook native app and dialog may return different auth tokens.
Is there any way I can use native fb token for browser fb login?
Please if somebody can help in this.
This is currently not possible. The Facebook for Android application and the Facebook login through your browser on your device share different sessions and the session from one is not able to access the session from the other. Your users will need to login to their Facebook account through their mobile browsers in order to comment directly on your page.
However in the next release of the Comments plugin Facebook will soon be introducing comment mirroring to the comments plugin which will allow you to share the same comment thread on your Facebook Page that you are having on your site.
This new product is highlighted here and is currently in beta: https://developers.facebook.com/products/social-plugins/comments/