Has anyone succeeded embedding Facebook Like button in metro app page? I tried both flavors HTML5 and iframe and none of them seem to be working fully.
What works:
Both flavors can render the not-logged-in version of Like button with total like count correctly.
What does not work:
Clicking on “Like” button takes user to metro IE for sign-in but its unable to return to the metro app page. User stays in metro IE blank page and even if you forcefully come back to metro app and restart, it still does not recognize that you are logged in to facebook.
Has anyone successfully able to add fully functional like button in metro app? Any pointers on what else to try?
No you can't. You can't integrate js from the outside like you would do on a normal webpage.
Instead you can login to Facebook from a Windows 8 application using OAuth. Once you have a valid access token you can perform any action using Facebook's Graph API, but liking a page is not supported (though the documentation is misleading).
Take a look at the Web Authentication sample SDK app.
Related
I have a vb6 application that creates a jpg image. I need to have the user click on a button to have that image uploaded to her Facebook page. I created a Facebook app and use an api (chilkat) with my vb6 to do the upload. But, I've really been stumbling around trying to get it working. On the Facebook side, what settings should I have to just upload a photo? For example, this runs on Windows PCs... what platform do I designate in my Facebook app??
Also, my current attempts get an error from Facebook saying that "Can't Load URL: The domain of this URL isn't included in the app's domains." I expect this upload to be from the user's PC to Facebook. What URL/domain do they want?
Are there samples of this type of thing that I could check? Thanks - John
New info as of Nov 12 --
I have the Facebook app set as a Website using "localhost" which seems to move me along a bit. But, now I get the error --
"The request is invalid because the app is configured as a desktop app"
Is that telling me my Facebook app is a desktop??... or that my vb6 code says it is a desktop? If I have to change the Facebook platform, it looks like I need a Windows store id? If so, is that just a simple registration (and $19)? Thanks - John
Currently I am working on an WebApp with Ember.JS. Now I want my customers to log in with their Twitter account using OAuth but I don't want my App to reload when they do.
So my idea was to have the login button open an popup to the Twitter authentication page which redirects to my page which has some JS based on the result e.g
window.opener.success(userdata);
and
window.opener.failure(error);
But since it first redirects to Twitter (the popup) browsers remove the window.opener properties to prevent cross site scripting even though it does redirect back to my own domain (where the JS code is).
Is there another way to go about this?
edit: I could user postMessage, but this doesn't work in IE8/IE9 in a popup. Only in an iFrame.
Yes, you have the same idea as some other programmers at Vestorly; they made a social authentication plugin called Torii I would recommend this as they have probably also taken care of all your obvious security concerns.
I'm implementing a Facebook login button on my site via ...I'm using the auth.login function in javascript SDK to redirect the users. On a desktop the user is prompted for a username and pass, and then is redirected to the page first.php...However, on mobile devices, the user is prompted to verify, but is then redirected to the facebook home page..I think this is because of my redirection method, can anybody offer some help?
This answer is based on the comments below the original question. To use the authenticate dialog, you must have a Facebook application setup. If you don't want a Facebook application, then you cannot use the authenticate dialog. Remember, if you want to play in Facebook's sandbox, then you must play by their rules and not look for ways to "game the system".
So, to make it work on mobile devices, you must configure your application to work in the mobile environment. Go to your application settings and ensure you have the mobile part filled in correctly.
I am searching for an automated mechanism to create a facebook app from my java program/servlet.
Usually, I have to go to developers.facebok.com, then click the "Apps" link at the top, then hit the "Create new App" button and create an app by providing the site url etc.
I am having a requirement where a user enters his facebook id in my site and hits the "Create App" button. My site will authenticate with facebook using OAuth 2.0 and will have to create an app in the users account. The app generally points to the user's profile page of my site.
Is it possible to do this? Can any one help me?
Thank you all in advance.
In short, no you can't. You have to verify that you are a human when you create an app, and facebook intentionally do not provide a way to programmatically create apps.
I have just implemented FB login and status updates in my app following the sample app in the IOS SDK.
I know it is common practice to have a like button for a page but is it also true for an app?
I mean is it possible to have a like button in my app that when tapped makes an entry on my FB page stating I like the app?
I can't seem to track the like feature down in the docs :-(
Thanks
basically you can add UIWebView and put your html tags inside it
check this and this sample they may help you