Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Instagram Android/iOS plugin

Discussion in 'Assets and Asset Store' started by claver, Feb 27, 2014.

  1. claver

    claver

    Joined:
    May 29, 2013
    Posts:
    11
  2. luniac

    luniac

    Joined:
    Jan 12, 2011
    Posts:
    598
    Can you provide step by step instruction on how to implement this on android and ios. I wanna get this but some of your reviews stated that extra steps needed to be taken to make this work. I'm not the most proficient programmer out there but I can follow clearly outlined steps well.

    I have a button in my game, and when its clicked, i want to take a screenshot of the screen and post it on instagram.
    How would i do that with ur plugin for both ios and android?
     
  3. fingersbleeding

    fingersbleeding

    Joined:
    Jun 10, 2013
    Posts:
    24
    Hi claver. Trying your plugin. Is it updated for Unity 5? It seems like the iOS post process PERL script isn't actually adding anything to the UnityViewControllerBase.mm, although I do have "// TAGGED BY CLAUDE" added to the header file, so the postprocess is running. As a result, XCode errors during build because it can't find the method _prepareinstagram referenced in RegisterMonoModules.

    Have you looked at the Facebook SDK's post process (they use a framework based in C#) or into subclassing UnityAppController.mm - http://forum.unity3d.com/threads/unity-appcontroller-subclassing.191971/? Either of those might provide a better method than PERL for handling this for a premium plugin.

    On Android, if you call the Instagram() method of the Chocolapps_instagram class directly, the social sharing works. You readme says to call PostInstagram, which only sets a boolean and ends there. You might want to update that for others.
     
  4. Milad Zarrin

    Milad Zarrin

    Joined:
    May 27, 2013
    Posts:
    6
    Hi claver,
    I just bought your plugin,
    I have a few questions:
    1- How can I get rid of the app selection page? I just want Instagram, not all the sharing apps.
    2-How can I post a text along with the image?

    Thank you
     
  5. nakiks

    nakiks

    Joined:
    Dec 4, 2011
    Posts:
    24
    I face this currently:

    Undefined symbols for architecture arm64:

    "_preparinstagram", referenced from:

    Chocolapps_instagram_preparinstagram_m814(Object_t*, float, float, MethodInfo*) in Bulk_Assembly-CSharp_0.o

    (maybe you meant: _Chocolapps_instagram_preparinstagram_m814_MethodInfo, __Z41Chocolapps_instagram_preparinstagram_m814P8Object_tffP10MethodInfo )

    ld: symbol(s) not found for architecture arm64

    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    Solutions please?
     
  6. Milad Zarrin

    Milad Zarrin

    Joined:
    May 27, 2013
    Posts:
    6
    Any Support???
     
  7. Kaustav123

    Kaustav123

    Joined:
    Jun 24, 2015
    Posts:
    2
    I have followed your given instructions while importing the package but while making my build in Xcode I am getting the following error:
    Undefined symbols for architecture arm64:

    "_preparinstagram", referenced from:

    _Chocolapps_instagram_preparinstagram_m687 in Bulk_Assembly-CSharp_0.o

    _Chocolapps_instagram_Instagram_m693 in Bulk_Assembly-CSharp_0.o

    (maybe you meant: _Chocolapps_instagram_preparinstagram_m687, _Chocolapps_instagram_preparinstagram_m687_MethodInfo )

    ld: symbol(s) not found for architecture arm64

    clang: error: linker command failed with exit code 1 (use -v to see invocation)
     

    Attached Files: