I have create a facebook app that interact with an android app, and i have a server where user could register himself (for using app) with his facebook account.
I want that when user register himself for firs time to my server, a link (with app logo and link to app page) will automatically shared on his facebook wall. How can i do?
The best way to do this without spamming:
https://developers.facebook.com/docs/reference/dialogs/feed/
Although i would not just open the dialog immediately after user registration, i would include a button where the user can click to share.
As i commented already: NEVER post anything automatically on the wall of the user, always let the user decide.
That would be for a Website, or a "Web App". If you are talking about a native App, then this may help you: https://developers.facebook.com/docs/android/share
Related
In my PHP web application, users can sign-in with their Google accounts. The auth flow works fine, but there is one case, when I am getting an error while sign-up via Google account. Say, I shared my app link to a user via Skype. He/she opens Skype app on their iPhone device, click on the app link and press sign in via Google button. As a result, I am getting 403 error, disallowed_useragent.
I read, that Google doesn't longer support OAuth requests to Google in embedded browsers known as “web-views”. The recommendation is to use devise web browser. However, I am a little confused here, as how can I tell my app to open user's devise web browser.
Does any one can help me and explain how should I deal with this Google restriction?
It is the app which has to show the login page in the web browser, in Android this can be done with using Custom Tabs, in IOS with the SFSafariViewController. Those controls use the native browser to show the login page and prevent the app from sniffing the user entered password (as you could do with the WebView).
It is not clear to me if it is your own app which tries to open the login page or if it is done from Skype, both are mentioned in the question. If it is your own app, you can use those controls, otherwise there is not much you can do, because you cannot control how a third party app handles the login.
I am working on my first wordpress plugin and posting to facebook. I have been looking for the last few days for ways to authenticate with facebook. I have found numerous sites that use the method of having the user create an App and then input the AppID and App Secret. However, I have used plugins before that use Oauth (I think) as it opens a pop up and the user basically logs into facebook and then says this app (your wordpress site) wants to control things.
Does anyone know of any resources for authenticating with Facebook without the user having to go through the trouble of creating apps?
Examples I have found but they require APPid and App Secrets.
http://www.sanwebe.com/2012/02/post-to-facebook-page-wall-using-php-graph http://www.pontikis.net/blog/auto_post_on_facebook_with_php
My anticipation is that they set up a website and create a single app for that. Then the plugin calls that website, gets the access token, and sends it back?
The wordpress documentation is quite confusing to me.
Creating an app takes about 5min, so I don't really see an obstacle here.
IMHO there's no other way than either
Using an app with FB Login to obtain the permission to post on a user's/page's behalf, or,
Getting an access token via the Graph Explorer and use this for your plugin
Please be aware that user access tokens expire after max. 60 days.
I have a facebook web login page, and when you already loggin in with facebook you don't have to log in anymore with you're account.
Now the problem is when I open the website on a iPad/iPhone and on the device I'm already logged in with the facebook app. My site can't see this and will ask you to log in via safari again.
I tried to use the Facebook JavaScript and PHP SDK, and both can't find an account logged in on the app. any idea's?
I assume there are two different sessions. The app and the actual website must share the same session but this is not really a good idea security wise, and I am not sure if it is even possible.
I'm trying to implement a transient oAuth authentication for a web app I'm creating. Essentially, the user needs to login with the Service each time they visit my web app. Primarily it's to enable using the web app without me having to store any of the user's authentication data. I'm trying to use the Tumblr API.
My platform of choice is PHP. However I've never really worked with oAuth before and and am still learning. The following scenario illustrates what I'm trying to achieve:
The scenario assumes that:
The user has already authorized my application in their Tumblr account.
Using my Tumblr Consumer Key, Tumblr Consumer Secret, I call to get request_token, which I later display to the user via a link.
Now on clicking the link above, I expect Tumblr to NOT to ask user to allow the app again (authorize in their account) and simply redirect user back and returning some info that will allow me to distinguish the user. There is no $_SESSION as user is trying login to the website using Tumblr
Is this even possible? If yes, can you help me figure out how to get this done?
Ps. I'm a complete oAuth Noob so please be gentle :)
If you are trying to use Tumblr in a way similar to Facebook Connect, Tumblr does not offer this feature at the moment. ie: you can not use Tumblr to log into your site.
Tumblr's OAuth implementation will allow you to have the user allow access for your app to the users account indefinitely. Which means that your app will always be able to access the users account, whether they are logged into your site or not. They will still have to log into your site each time they want to access your app.
Here is a solid guide to OAuth. Tumblr uses OAuth 1.0 :
http://hueniverse.com/oauth/
I've created a simple Facebook app that doesn't need any data/info from users. When I try to view the app on Facebook, it's requesting permission to access my personal info.
I want the app to display without this request, for both logged in and not logged in users.
What's the code to do this?
Edit with more info:
I have a working Facebook app which I want to leave alone, I've duplicated the apps code and created a new app through the Facebook dev area. I've changed the relevant App ID, API ID and Secrets throughout the code. The original app works without any permission needed, but my duplicated version for some reason requests permission.
Simple solution is to create the app in the developers area, do all the settings to an iframe and create the application path to your website. Now in your website remove all the PHP code related to FACEBOOK GRAPH API and let it be a simple website that is independent of facebook. This will make what you want.