I use Facebook sharer.php in my iPhone app. everything works fine, but I have a small problem with authentication.
I use this method: http://m.facebook.com/sharer.php?u=[some url].
Problem is when I log me to Facebook I am redirected to my Facebook wall and not to Facebook sharer page.
How to fix it ? I want to be after login redirected to sharer page.
Thanks a lot
I fix this by using another facebook webview for login. Then open share webview, it won't open login page.
This is login link that I use
Related
I am integrating a facebook login on a website, when I click on the login button, everything works perfect.
The problem is that I have different iframe on the website and when I open a iframe, and then I click on the Facebook button, no longer performs the login and must click 2 times for the login is successful. The first time, sent me and I returned to facebook
mydomain.com/?code=AQBBUikowvG3plEzLmvOXUmentATkPf8n6TQzdVxNWOAZ5jD-&state=21c4e7aa#=
then I have to click again and the login is done successfully.
I'm using this library to connect with facebook github.com/appleboy/codeigniter-facebook-php-sdk-v4
Why I can not perform my login after opening an iframe?
Thanks #CBroe, you're right, I had a call to the API of facebook in the parent page and the iframe, the iframe to remove everything worked properly.
When using the Facebook Page Plugin code generator, it asks for Facebook Page URL. Whenever I put the correct URL in I get an error.
For the life of me, what is the correct Facebook page URL? I'm just going to my Facebook home page and coping the URL and its giving me this error.
You need to put a Facebook fan page not a personal profile.
facebook.com/facebook <- fan page
facebook.com/zuck <- personal profile
For personal profiles use the https://developers.facebook.com/docs/plugins/follow-button
Does anyone know if Facebook Requests can be made to redirect into a Facebook Page app rather than into the Canvas app?
No, it will not redirect to any just url you give it. You should have them redirect from the Canvas app to the Facebook Page. Although that will be ugly/poor user experience. That's your only option.
How do you make a facebook application which you can search for on facebook and by clicking on it, it redirects you to a different website. An example is if you type in 1-800-Flowers and click on the App - it redirects you to the website http://ww30.1800flowers.com/template.do?id=template4&page=7900&conversionTag=true#flowers_facebook/offer straight away. Is this easy to do? If so, how? Thanks in advance
You can start by creating a app on Facebook and point it to a page on your website. On the page, add some JS code to pop the user out of Facebook and send them to your homepage: e.g.:
window.top.location = 'http://yourwebsite.com';
However, remember that it's against Facebook Terms to have an app simply redirect to a website. Your website must be Facebook Connected or use Facebook API in some way to enhance the user's experience.
I m using facebook api from https://developers.facebook.com/docs/mobile/ios/
and using [facebook authorize:nil]; to open login dialog. But when I run on simulator it opens facebook dialog for login but when I run it in iphone It opens my facebook Application to login instead of facebook Dialog. I want to show facebook dialog when user is not login otherwise run code that I have applied.
If you logged in the Facebook account once from the simulator it goes to the desired feature next time onwards. Please check it.Thanks.
Facebook has an Single Sign On technique for permission grant. The tutorial that you are following does the same for you. It will open the Facebook App for you or the Safari, if it is not found. So the authentication process may remain clear under the oAuth protocol.