Facebook connect with sencha - javascript

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

Related

Facebook login for Windows app using Javascript and html5

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

Can a Titanium app access the ios share features?

I want to let user's of my app share stuff by clicking on a share icon and bringing up the ios share page that pops up from the bottom of the screen and shows share options including message, mail, twitter, and facebook. I notice that apps, including the BBC News app have share icons that do this but I can't find anywhere that says how to do this with a Titanium app.
Is it possible? If so how?
I use this widget which brings up the native share sheet: https://github.com/ricardoalcocer/socialshare
You could try out this one: https://github.com/viezel/TiSocial.Framework
It works for iOS6, iOS7 and iOS8 as long as your app uses the Titanium SDK 3.4.0 or above.
It is also discussed here.
Or you could write your own module using this guide https://wiki.appcelerator.org/display/guides2/iOS+Module+Development+Guide

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.

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.

How to access sms inbox from javascript on android (phonegap)

I just discovered PhoneGap and was wondering if there's a way to access the SMS inbox from Javascript with it. Or if there's another easy way to do it in an app created from a HTML/CSS/JS solution.
There's no info about SMS access in the phonegap docs, but maybe the inbox is avaliable as a url or a folder?
I would like to stick with phonegap so that the app would work on many devices, but an android only solution is satisfactory too.
This functionality is not currently in PhoneGap though it might come in a future release. This is something that whole community would probably appreciate!
I think you will want to create a plugin to achieve this functionality for the moment. Some examples of plugins are here: https://github.com/phonegap/phonegap-plugins.
Here is an example of using an Android ContentProvider to interact with the SMS inbox How to delete an SMS from the inbox in Android programmatically?
There is a plugin for doing it with phonegap,
Take a look at SMS reception plugin for Phonegap

Categories

Resources