I am creating a native app for android using sencha touch 2.2.1
I want to integrate the feature of social media sharing (Facebook and Twitter).
The idea is ,there will be list of images and few buttons under each image. When the user clicks on the share button, Facebook and Twitter icons will popup and if user click on facebook, than that particular image will get posted on users wall(if he/she is already logged in, otherwise will open facebook login window). Same will happen for Twitter.
I am able to implement this thing with sencha webapp. Becuase on the webapp, facebook is getting its fallback url and it posted the image successfully. But when I created an apk of my application then the sharing code is not working.
It is showing error - "URL not allowed.......". I think it is an issue of fallback url.
I used facebook sdk also but it did not work for me. I also tried with combination of sencha Touch and Phonegap but still the same error as mentioned above.
Please share if anybody implemented similar to this type of project.
Related
Hi I'm trying to open the facebook app with a link from my webpage onto a specific page/profile which works great, "fb://profile/" (which is the same for both android and IOS but previously android required "fb://page/" which no longer works)
However if the phone does not have facebook installed this method does not work and tapping the link does nothing. Would anybody know if there is a way around this?
I'm kind of asking is there way in javascript if you can detect if facebook is installed and deep down i know the answer is no chance! Thanks.
We have similar functionality for Twitter -- linking to "twitter://post?message=Hello" will open the Twitter app (if installed). Is there a similar way to invoke in-facebook-app share dialog via "fb://"?
The reason we'd like to use "fb://" over "http://facebook.com?sharer.php?u=" is UX. From their phones, most FB and Twitter users use the native apps (not the mobile web versions) so their apps are logged in and their browsers are not. The "twitter://post" link works beautifully for Twitter, but we can't figure out if something similar is possible with Facebook (we tried most of what's on http://wiki.akosma.com/IPhone_URL_Schemes#Facebook but no dice. Even the actual share button invokes the fb web version, not the app). Suggestions?
Thanks.
I have a simple Facebook App that I use to allow users of my website to login with Facebook. Recently I added a basic custom story via the open graph API, e.g.
Nick plays a mixtape via anexample.com
The custom story appears in my stream as expected, however when I click the anexample.com link on the story I get the following error and cannot access the actual Facebook App page:
Sorry, the details for anexample.com cannot be displayed because the app is
misconfigured.
What is strange, is that the application redirects at
https://www.facebook.com/games/?app_id=AN_APPLICATION_ID
despite the fact that the app is not registered as a game.
Has anyone else faced this behaviour?
Thanks,
On tapping on the App link, you could navigate it in one of the two possible ways
Any FB page: Add the page in Advanced settings of your App.
A website: Add a web platform
When a user opens a link in their Facebook iPhone app to our page, how do you get the Smart App Banner to show at the top of the page? It doesn't show I'm assuming because the Apple Dev site says Smart App Banners don't show up in frames. Is there a way around this? Do I have to build my own custom banner?
This is also an issue in Twitter. Our app shares links to FB and Twitter back to our site. I'm trying to figure out how to make the Smart App Banner to show up whether viewing in iPhone Safari, Facebook, or Twitter.
Smart App Banners require a meta tag in the header of the page. They cannot be used in frames. So without access to the source code of Facebook and Twitter, this isn't possible.
http://developer.apple.com/library/ios/#documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html
Yes, you will have to build your own smart banner or use someones work. I had the same problem and would like the visitors to our website to find our app using a "smart banner".
I have adapted this great script: https://github.com/ijason
Had to make a few changes to link to the app in App Store instead of the artist e.g. changed the code artistViewUrl to trackViewUrl = json.results[0].trackViewUrl to link directly to the app instead of the developer in my case.
It's implemented here and has been tested it in Messenger, Twitter and the native Facebook app. The usual smart banner is shown in Safari. The other will appear in other browsers and when using frames.
https://eventsane.com/Events/United-States/New-York/New-York-City
So far it has given the result I was aiming for even though Facebook steals the best spot in the Messenger app. Hope it helps.
i am using FBConnect in my project for integration of Facebook.but now i saw in all apps,when the user tap the Facebook button,it goes directly to the FaceBook App in the device to open for login.i think this is done with URLschema to communicate the App to App in a device.but how can we o this in case of Facebook.
My need is ,i have a sharing option in my app to Facebook,so when the user tap the button it needs to open the Facebook app in the device for login,and after successful login it needs to come back to my app also.how to o this?.is there any sample project or apps to do this.
Thanks in advance.
Look for the FBSessionDelegate. You provide the delegate which gets callbacks when the FB login completes (successfully or not). Also the FBConnect code, see git://github.com/facebook/facebook-ios-sdk.git, has a sample directory with a Hackbook Xcode project. That should get you started!
Here is the Facebook iOS Tutorial (which uses FBConnect).
You can use the Graph API(Uses OAuth 201 authentication protocol) instead of FBConnect , which is newer and a lot easier.You can implement it inthe following steps:-
1>Get unique id and api key from facebook's develooper portal.
2>Display the login page of the facebook in your app.
3>Allow the user to loginthrough following URL
https://graph.facebook.com/oauth/authorize?
client_id=[API key]&
redirect_uri=http://www.facebook.com/connect/login_success.html&
scope=[extended permissions]&
type=user_agent&
display=touch
you can implement the FBLoginView in UIWebView and present it.The code is be large so i am giving a link to Ray Wendelich's Facebook Graph API