Copy link to clipboard
Copied
Hi everyone, I am trying to create an ios app to capture images and allow users to share it to their own timeline by logging in and logging out from their account from the created ios app and not through the facebook app, I was recommended the GoViral plugin to do this and while the email and messaging seems to be working, I could not get the login facebook button to work, when clicked, it gave me a black screen for a brief moment and shuts down, could anyone enlighten me on why is this happening?
Copy link to clipboard
Copied
The way Facebook works has changed over the years, so make sure you're using the latest GoViral, and read its documentation about the app descriptor settings.
But, I think you could work in a different way. If you use this function:
GoViral.goViral.shareGenericMessageWithImage("Subject Text","Message",false,bitmapdata);
where 'bitmapdata' is your image, that should bring up the system share dialog, and the user can share to several different places, including Facebook. The system will take care of dealing with Facebook.
Copy link to clipboard
Copied
‌i would have to 2nd Colin's post. It is far easier to use shareGenericMessageWithImage. It will bring up the share dialog panel which most people are already used to doing. I use it for everything on my apps.
Copy link to clipboard
Copied
The share dialog panel works.. but it never passes the text for some reason.. only the bitmapdata.
Copy link to clipboard
Copied
‌the first two parameters are for text. The first being for the Subject line of an email if your user chooses email. The second is for the Message of an email, text and social post. Make sure your main message is in the second parameter.