Facebook login for Windows app using Javascript and html5 - javascript

I am developing a windows 8.1 app using javascript and html5. I want to integrate facebook login.When I searched I found the following documentations
1.https://developers.facebook.com/docs/facebook-login/login-for-windows-phone
2.https://developers.facebook.com/docs/facebook-login/login-flow-for-web/v2.3
which one should I use.

I suggest you go through the first link since it mentions how to integrate facebook SDK in windows phone. The other link mentions about Facebook integration through javascript in web.

I tried the first one, I used js function in wp8
Windows.System.Launcher.launchUriAsync("fbconnect://authorize?cliend_id=My_appId&scope=basic_info&redirect_uri=msft-my_prod_id://authorize").then(function (success){
})
It works for me, If I'm already logged with facebook app, it return true, else it show me Facebook Login Page. But I don't obtain Facebook userId, i'm able only to intercept boolean value for success or not. Did you get a solution for login and obtain Facebook userId?

I found the Winjs sdk for Facebook
https://github.com/Thuzi/facebook-winjs-sdk
it works for me.
For windows phone you need to use
Windows.Security.Authentication.Web.WebAuthenticationBroker.authenticateAndContinue instead of Windows.Security.Authentication.Web.WebAuthenticationBroker.authenticateAsync during the login

Related

Yammer ios app's uri scheme for opening a user profile

I am currently integrating our cordova app with social networking apps such as twitter, linkedin and yammer. The first two apps provide uri scheme in directly opening the user's profile. E.g. twitter://user?screen_name=SREEN_NAME and linkedin://profile/PROFILE_ID respectively.
Now, I am trying to figure out for yammer. There doesn't seem to have much information in the internet. I managed to download the IPA file and extract the info.plist file. There, it shows yammer:// and it does open the ios app. I played around with the combination for opening a profile but did not have much luck. I am wondering if anyone had figured it out already. Would love if there's a yammer developer around here.
Unfortunately at the moment we don't support a way to do this
I have done this in a xamarin.forms app in both iOS and Android environment using Jordan Hewitt's example here: https://forums.xamarin.com/discussion/48089/how-to-open-other-apps-from-xamarin-forms
The URI schema would be defined in Xamarin.forms in MainPage.xaml.cs as:
Xamarin.Forms.Device.OpenUri(new Uri("yammer://threads"));
For native iOS and Android the schema would be same: "yammer://threads"
Hope this helps.

WeChat share button

I am trying to find out if it is possible to create a share button on a website that shares to WeChat.
So just as you would with Twitter or Facebook to share a message or link back to the social network.
Has anyone managed to do this? Or has anyone confirmed that it is not possible?
thanks!
You can use the AddThis service to embed a range of share buttons, including WeChat.
It doesn't seem to support opening the WeChat app with a pre-populated message (like when sharing to Twitter/Facebook) - probably because the WeChat app doesn't support this - but works around it in two ways:
On Desktop: clicking the share button displays a QR code which the user can scan using their mobile device
On Mobile: tapping the share button displays a share URL, a button to easily copy the URL, and another button to open the WeChat app. The user needs to still perform a couple of steps manually, but it's about the easiest it's gonna get.
Hope that helps.
They publish an APK for Android and iOS that allows you to do this from another native app.
As far as I'm aware, WeChat, like WhatsApp, does not support any web browser access so I don't think it's possible.
http://dev.wechat.com/wechatapi
Perhaps somewhere in the API you can create a share button on a website that opens the Android or iOS apps, but I don't think any WeChat access is possible from the desktop.
The answer in this SO question should help you WeChat sharing, how to change re-share description and thumbail?. It refers to a Javascript API WeixinJSBidge http://mp.weixin.qq.com/qa/index.php?qa=3163 with the documentation in Chinese but the code is still readable. Hope it helps you!
I have tried to implement the integration of WeChat on Meteor before. The questions are:
1. Did you have the correct package ID and signature?
2. Did you get approved from WeChat and get the WeChat App ID?
I follow the tutorials and get my app work here: http://blog.sanuker.com/?p=691
Hope it helps! Good luck.

Can i create android apps using javascript with facebook sdk?

Can i create smth like this with JavaScript? Thank you very much for help
Create an Android application that allows to: 1. login to user's Facebook account and retrieve friends list. The list should be then displayed as given friend's profile image + username.
Cordova would assist you in developing mobile applications for various platforms using javascript, html css. Here is their site url http://cordova.apache.org/
For facebook related stuff, You can use facebook's graph api.

Using Google+ Login Javascript on a phonegap app

I am new to the world of Social media login and to Phonegap. What I would like to do is allow for users to "Sign In" with Google+ and eventually Facebook on my phonegap app. With phonegap we use javascript for the "Smarts" behind an application. There is an option with Google+ Auth to build the Auth with javascript. Well that's great!
The problem that I am running into is that Google+ API is asking what HTTP referers can use this API. Well, there will be many different instances of the application because it will be located on peoples mobile devices.
Could I say something like "http://localhost"? Any help would be great! Thank you in advance.

Facebook connect with sencha

I'm building a website and a simple app for android and iOS with sencha and I want it to connect to facebook and post something.
I've read the information and tried to implement Facebook Javascript SDK.
It works on the website, when I tap a button the facebook login poped out, asking me to login and authorize the facebook app I created. after I authorize it and got an access token, I can post something to timeline from the web.
However, when I tried to pack it into .apk and install it on my android device it didn't work.
Is it possible to use Facebook Javascript SDK with sencha touch after I pack it to .apk ? or should I be use another method ?
I'm hoping that anybody could help me with that, and an example would be nice.
Thanks in advance.
Write a handler in sencha to call your site's oAuth service for authentication...
Use this authentication for your mobile app... I dont think the issue was due to .apk did you try the same thing in a mobile browser and see if it worked???
The Watch List lets you share which movies you have seen and want to see with your friends on Facebook.
https://github.com/senchalearn/Watchlist

Categories

Resources