문제

In my app, I need to put a Like button that will make the user Like a specific link. The link is not a Facebook Post.

currently I'm using the FBConnect Library hosted here https://github.com/facebook/facebook-ios-sdk

That lib uses the new SDK with OAuth.

I have tried various things but none have worked so i have no useful code to post.

My objective is simple: "Like" a link.

How can I achieve that?

~Thanks in advance.

도움이 되었습니까?

해결책

You can use a UIWebView and place the "Like" button code in an HTML document. Has worked fairly well for me.

This will also allow you to customize the UIWebView to have a clear background, no scrolling, etc. as well as CSS to match any color scheme your app may have.

다른 팁

Liking is not available via API, and as far as developer discussions on facebook said, it wont be available in near future. Sorry to tell you that.

But you can try to alter your idea, just post your URLs to the users profile.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top