An iOS application using MQFacebookManager is available at Example.
On your Podfile
add this project:
...
pod 'MQFacebookManager'
...
For the first time, run pod install
, if you are updating the project invoke pod update
.
Import the FacebookManager.h
header file
#import <FacebookManager.h>
// request permissions block
[FacebookManager requestPermissions:@[@"public_profile"] success:^{
// success
// do somethings
}];
// request for me informations
[FacebookManager requestForMeSuccess:^(id result) {
NSLog(@"%@",result);
}];
[FacebookManager shareMessage:@"message" link:@"link"];
[FacebookManager likeUrl:@"https://www.google.com/"];
[FacebookManager postVideo:data Title:@"title" andDescription:@"description"];