Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I already tried follow,
Imported social .framework and accounts .framework.
and, added header files as,
#import "Social/Social.h"
#import "Accounts/Acounts.h"

But still i am getting error in SLServiceTypeFacebook.

SLComposeViewController *fbController =[SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook]; \\Here this line i am getting error like "Declaration of 'SLServiceTypeFacebook' Must be imported from module 'Twitter.TwRequest' before it is required")

SLComposeViewControllerCompletionHandler __block completionHandler=^(SLComposeViewControllerResult result)
{
[fbController dismissViewControllerAnimated:YES completion:nil];
switch(result)
{
case SLComposeViewControllerResultCancelled:
default:
{
//NSLog(@"Cancelled.....");
}
break;
case SLComposeViewControllerResultDone:
{
//NSLog(@"Posted....");
}
break;
}};


Help Needed.
Posted
Updated 4-Feb-15 1:51am
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900