Home Facebook page likes count in ios swift
Reply: 0

Facebook page likes count in ios swift

MIOSY
1#
MIOSY Published in 2018-01-11 07:07:56Z

I'm planning to display my facebook page likes in iOS app. I can successfully login into my fb and I have valid access tokens. Now I want to display specific(AnyPage) page likes count in label. I did some research on it. I found with the help of facebook graph API we can get the pages likes count. For This I need to give page ID, page name. Can someone please explain how to get likes count in swift in iOS. The below code is for likes for a picture but I have to do same for pages.

let request3 = FBSDKGraphRequest(graphPath: "/me/likes", parameters: ["fields": "id,name,picture, user_likes"])
request3.startWithCompletionHandler({ (connection3, result3, erreur3) -> Void in
    if erreur3 == nil {
        print(result3)
    }
    else {
        print(erreur3)
    }
})
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.30859 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO