All Projects → DaVikingCode → Instagram-ANE

DaVikingCode / Instagram-ANE

Licence: other
Instagram sharing ANE for iOS & Android

Programming Languages

c
50402 projects - #5 most used programming language
objective c
16641 projects - #2 most used programming language
java
68154 projects - #9 most used programming language
actionscript
884 projects

Instagram-ANE

Based on Sharkhack Instagram's ANEs. We wanted to have a default implementation for iOS & Android into the same ANE.

var instagram:Instagram = new Instagram();

if (instagram.isInstalled())
	instagram.share(new DaVikingCodeLogo().bitmapData, "my caption test");

On Android we use directly the bitmapData whereas on iOS we turn it into a ByteArray. You may use a third argument for the compressor. Default is new JPEGEncoderOptions();

Also on Android be sure to add this permission (the picture need to be saved on disk): <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

On iOS you must add in your *-app.xml:

<iPhone>
    <InfoAdditions><![CDATA[
        <key>LSApplicationQueriesSchemes</key>
        <array>
            <string>instagram</string>
        </array>
    ]]></InfoAdditions>
</iPhone>

Note, since several months the pre-filled caption has been removed from Instagram. If the user has an old version on its mobile, it will still work. Your image should be at least 640px by 640px square.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].