Hello All,
I am having an issue where a native popup does not show, here is my complete code below
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | local callFacebook = function() local facebookListener = function( event ) if ( "session" == event.type ) then if ( "login" == event.phase ) then local theMessage = "AWESOME MESSAGE" local aLink if deviceOS == "iPhone OS" then aLink = "http://itunes.apple.com/us/app/BACON" else if isAmazonBuild == true then aLink = "http://www.amazon.com/gp/mas/dl/android?p=BACON" else aLink = "http://market.android.com/details?id=BACON" end end facebook.request( "me/feed", "POST", { message=theMessage, name="SCRET APP NAME", caption="SECRET CAPTION", link=aLink, picture="HIDDEN.png" }) end end if( "dialog" == event.type ) then if(event.didComplete) then FBResponse = native.showAlert( "FaceBook Share", "Posting to Facebook wall successful!", {"OK"}, removeAlert ) end if(event.isError) then FBResponse = native.showAlert( "FaceBook Share", "Posting to Facebook wall failed!", {"OK"}, removeAlert ) end end end -- Naturally you will want to put your own info above facebook.login( "?????????????", facebookListener, { "publish_stream" } ) end |
bump