Skip to main content
Participant
June 22, 2012
Question

Share on facebook via iOS app

  • June 22, 2012
  • 3 replies
  • 3029 views

I am making an iOS app using flash/as3/AIR and I am using navigateToUrl on a MovieClip. It works fine. I have also created a URL for a share button and it works perfectly when I test my AIR app on my laptop. This is the working url (the whole paragraph):

http://www.facebook.com/sharer.php?s=100&p[url]=http://www.p ageofgames.com&p[images][0]=http://pageofgames.com/runosaur.

png&p[title]=Run-O-Saur&p[summary]=I%20scored%2017,833%20on%

20Run-O-Saur%20for%20iPhone!

When I touch the button on my iPod, Safari opens and it loads this url, but facebook switches to mobile and it removes the image, description and whatnot. Any help on how I can open that above URL exactly as it works in a regular browser?

(I'm new so easiest ways appreciated)

This topic has been closed for replies.

3 replies

Mark.fromOP
Inspiring
June 23, 2012

The Go-Viral exension from Milkman games might be of help to you.

http://www.milkmangames.com/blog/

Participant
June 26, 2012

This is along the right lines and looks really good. Unfortunately I am very new to this and it looks overly complecated for what I want to do? Is there an easier way?

Oh and just saw it's $55, I don't have great marketing ability so can't see a return on my first few apps making this a bit of a waste of money for me.

rjoshicool
Inspiring
July 2, 2012

Instead of using the navigateToURL function, use the Facebook AS3  API. I have written an article for starting with Facebook API here: http://rjdesignz.com/adobe-flex/facebook-api-in-flex-mobile-air-app/

In order to post an image you would have to read more about the Graph API here: http://developers.facebook.com/docs/reference/apior just search on Google for posting an image on Facebook using AS3 Graph API.