How to use Xamarin.Social with Xamarin.Forms

JoshuaNovakJoshuaNovak USMember ✭✭

I am trying to use Xamarin.Social with Xamarin.Forms, but I can't seem to figure it out. I need to be able to open up the Facebook/Twitter share dialogue when the user clicks a button, but i'm not sure how this can be done. Anyone done this or know how it can be accomplished?

I've tried with a dependency service, but that doesn't seem to let me call PresentViewController like I need to, and overriding ViewDidAppear makes the dialogue happen as soon as you go to the page and not on click.


  • ChaseFlorellChaseFlorell CAInsider, University mod

    I'm not familiar with the product, but in looking at the Getting Started page, I don't think there's an Interface or PCL implementation for sharing the components. Your best bet might be to write a Custom Renderer. Basically for iOS I see a call to PresentViewController and for Android I see a call to StartActivityForResult. This tells me that there are views to show, and Custom Renderers that need to be written.

Sign In or Register to comment.