It looks like you're new here. If you want to get involved, click one of these buttons!
- (void) fbshare:(const char*)score { if([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) { SLComposeViewController *controller = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook]; [controller setInitialText:[[[NSString alloc] initWithUTF8String:score] autorelease]]; //[controller addURL:[NSURL URLWithString:@"<a href="http://somewhere.com"]]" rel="nofollow">http://somewhere.com"]]</a>; //[controller addImage:[UIImage imageNamed:<a href="https://forum.gideros.rocks/profile/ball.png" rel="nofollow">@ball.png</a>]]; UIViewController* rootVC = g_getRootViewController(); [rootVC presentModalViewController:controller animated:YES]; controller.completionHandler = ^(SLComposeViewControllerResult result) { [rootVC dismissModalViewControllerAnimated:YES]; }; } }
Comments
Do you have facebook app installed on your testing device?
http://www.nightspade.com
Though, i'm not sure about the "memory alloc" and such at iOS, never learn about that.
Also can't provide a singular plug-in for this, mine is too messed up with so many things.