Results 1 to 9 of 9

Thread: Sharing my extjs app on Iphone with facebook app

  1. #1

    Join Date
    Nov 2013
    Location
    Mauritius
    Posts
    2

    Default Sharing my extjs app on Iphone with facebook app

    why after sharing my extjs app on Iphone with facebook app, the app is not opening in facebook build-in browser?

    example: try to share any of your app in a facebook by using an Iphone. Then go to your post and open it, you will see.

    Thanks.

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Can you explain this issue to someone who's never used facebook? Is the sharing simply a link or does the site somehow distribute your app?

  3. #3

    Default

    Quote Originally Posted by Gary Schlosberg View Post
    Can you explain this issue to someone who's never used facebook? Is the sharing simply a link or does the site somehow distribute your app?
    Hi Gary! What happens is, when we create a post on Facebook and add the link to the app created on Sencha, iPhone users can't open the link. It opens a blank page in Facebook's in-app browser. Is there are a solution for this?

  4. #4
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Is this working for you with other apps? Is this the feature we are discussing?
    https://developers.facebook.com/docs/applinks/ios

  5. #5

    Default

    No, I haven't tried in the case where the app is posting on my behalf, but when I create a status update myself on Facebook and put a link to the app. People who use Android are able to open the link, those using iPhone can't. There's no issue when I add a link to my posts on LinkedIn and Twitter for any device.

  6. #6
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Ah, OK, sorry. So the link that fails in the Facebook in-app browser is working in LinkedIn and Twitter for iOS? For Android users, is it switching to Chrome?

  7. #7

    Default

    For Android devices it opens in the Facebook browser itself. It doesn't switch to Chrome.

  8. #8
    Sencha Premium User
    Join Date
    Oct 2011
    Location
    Paris
    Posts
    21

    Default

    Hey guys, I have a similar issue.

    Facebook embedded browser user agent is missing the Version number
    Mozilla/5.0 (iPad; CPU OS 11_0_3 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Mobile/15A432 [FBAN/FBIOS;FBAV/148.0.0.45.64;FBBV/78032376;FBDV/iPad4,1;FBMD/iPad;FBSN/iOS;FBSV/11.0.3;FBSS/2;FBCR/;FBID/tablet;FBLC/fr_FR;FBOP/5;FBRV/0]

    As a consequence the app loading process fails in the viewport rendering function
    if (Ext.browser.is.Safari && Ext.browser.version.isLessThan(9))
    Ext.browser.version is actually not defined.

    I set a small hack in my code to force the version number in the user agent object.
    It will do the job until you guys fix the framework.

    // Check if iOS user agent is not missing version
    var iOS = parseFloat(
    ('' + (/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent) || [0,''])[1])
    .replace('undefined', '3_2').replace('_', '.').replace('_', '')
    ) || false;

    if ( iOS )
    {
    var userAgent = navigator.userAgent;
    navigator.__defineGetter__('userAgent', function(){

    if ( iOS )
    return userAgent.replace( 'like Gecko) Mobile', 'like Gecko) Version/' + iOS + '.0 Mobile' ) // customized user agent
    else
    return userAgent;
    });
    }

  9. #9
    Sencha Premium User
    Join Date
    Aug 2009
    Posts
    7

    Default

    @phimaurYou sir are a genius. This worked for me! I spent days trying to get to the bottom of this issue.

Similar Threads

  1. Facebook and twitter sharing.
    By moses.rct in forum Sencha Touch 2.x: Q&A
    Replies: 4
    Last Post: 19 Feb 2015, 4:16 AM
  2. Google+ and Facebook Sharing
    By existdissolve in forum Sencha Fiddle
    Replies: 6
    Last Post: 5 Sep 2013, 10:39 AM
  3. Sharing via Facebook and Twitter
    By Steffen Hiller in forum Sencha Touch 2.x: Discussion
    Replies: 7
    Last Post: 14 Mar 2013, 2:55 AM
  4. Facebook Plugin with Iphone App
    By BrnR in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 16 May 2012, 5:20 AM
  5. Launcher like Facebook's iPhone app?
    By swese44 in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 13 Sep 2011, 6:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •