Good enough for me!
Hi Sunny,
How about downloading the image to your temporary directory, then pointing the “image” table info to access that image via the social plugin? Would that work for you?
Thanks,
Brent
Is there a way to control the format of the links, images and text you pass to the Facebook popup using social?
It would be nice to have a formatted different line for each platform with an image an link. Eg
IOS <app store link> <image>
Android <google play link for your app> <image>
Any tip or tricks on how to achieve this or get close it?
No. The OS is in control of this.
Hi Rob,
Just a suggestion. Since I was searching for a quick way to login into google+ and found this excellent working sample here :
https://developer.coronalabs.com/code/google-connect#comment-form
Maybe you guys can incorporate something like this into the API, so people like me will benefit from it.
Thanks
Thanks for the submission @yosu. I would suggest that you use our feature request system at: http://feedback.coronalabs.com and put in the request there and point to your project. G+ is becoming a more important service and I’m sure more developers would like to support it. Google Play Game Services needs it for match making I think, so make the request and lets see what comes from it.
A couple questions:
-
How common is it for a user to not be logged into fb or twitter on their device (i.e. via the Settings menu)? In the case that they are not logged in, is there a way to provide a link in the error message that will open up the FB settings in the main Settings screen? Or at least the Settings screen alone?
-
Is there a way to confirm (i.e. something gets returned) that the user actually submitted the share? For example, if I want to reward the player with 10 coins for sharing the post, I would need to make sure the user actually clicked “Post” and not “Cancel”. Is there a way to differentiate?
Found the answer for #2 in event.action (returned either “cancelled” or “sent”)
Will there be any plans to include Google+ in this too (apart from Apple including it) ?
I’ve not heard any rumblings about G+ from the Apple side. The API that we used on iOS uses what iOS gives us. On the Android side I’m not sure what the engineering plans are. However, the best place to make these wishes known is at:
http://feedback.coronalabs.com
and add the request or vote up an existing one.
Hi Rob,
Is there a way to test that a given service for the social plugin is “potentially” available if the user sets up there account?
From what I’m seeing the “local canFacebook = native.canShowPopup( “social”, “facebook” )” type check basically needs the platform (e.g. IOS/Android) to support the plugin plus the account to be there. What I’d like to do is be able to do a check that highlight which category the user is in:
E.g. Check for Facebook, either:
* not available (e.g. on Android) so don’t show button
* available on platform but account not setup - show button but give “setup your account” if they click on it
* available on platform + account setup - show button and sent message when they click
How could I do this?
You could check to see if they are on iOS5 and if so, enable a twitter button using the “twitter” popup. If they are on iOS6 or later, then you know the OS supports Facebook, twitter and sinaWeibo. If your on iOS6 and the check fails, then you can prompt them to add it. There is probably some URL scheme to launch the settings app, but you would have to research that on Google.
Using native.canShowPopup() to determine if the feature should be enabled is not a very good idea, because from my testing, if the user doesn’t have a Facebook or Twitter account setup in his/her iOS device,
native.canShowPopup() returns FALSE
however, the user still can use the feature (the popup will prompt the user that the account has not been configured and offer a setting button for configuration)
Is there any way to get an idea of when the plugin will be available for Android? Is it like weeks/months? This is an important feature in my app and the only one preventing it from being truly cross-platform.
No promises. No warranties expressed or implied. No one is allowed to say “But Rob said…” in the future. There are too many variables in the way, but if the cards fall just right, probably weeks and not months.
Did I disclaim that enough?
Good enough for me!
Is there a way to control the format of the links, images and text you pass to the Facebook popup using social?
It would be nice to have a formatted different line for each platform with an image an link. Eg
IOS <app store link> <image>
Android <google play link for your app> <image>
Any tip or tricks on how to achieve this or get close it?
No. The OS is in control of this.