Like a url with the facebook-ios-sdk? - ios

I know it's possible to like a page from the Facebook SDK for iOS, but is there a way to have a url/link and to like that url/link?
I've implemented Facebook SSO in the application and would like to use the login for the user to like a URL.
The thing I'm working on now is a blog-like view that will show posts from a certain site, and I would also like to be able to like that blog post, since I have the URL from the specific blog-post.
So if I would like to implement a like button on every blog post in the app, is there a way to do this through the Facebook iOS SDK?
And if not, which is the best workaround that will not require the user to log in again?
I'm talking about a web-view like solution?

Related

Posting to a specific facebook user's timeline from ios xcode

I'm trying to figure out how to post from xcode to a specific user's timeline. I found a lot of posts but they seemed to be for older versions of the facebook sdk.
I'm looking here:
https://developers.facebook.com/docs/sharing/reference/feed-dialog/v2.4
And the only option I'm seeing is to use url redirection.
I'm looking here for options here:
https://developers.facebook.com/docs/sharing/ios
But I'm not seeing any way to specify it to post to a different user's timeline.
So is the url redirection the only way to do it? What I want to do is press a button on my ios app, and then have it post to a facebook wall. If I use url redirection, it will open up a browser... do the posting and then redirect somewhere... where I assume I will have javascript code to close the browser.
Are there any other options? Thanks.
You can only post to the timeline of the logged in user. Posting to the timeline of one or more friends of the user is not supported.

Where should I post photos to get Facebook id and to be able to like them from iOS application

Here is my task. I have some images/photos, you can view them in my application also you should be able to like/unlike them and see how many other people have already like. I use iOS SDK for logging in with Facebook credentials.
To like some object or get it likes number you should have some facebookID. So my question is where should I post my images to get that ID?
I have found two ways of solution my task.
First one is to use iOS Facebook SDK. Then you have to post your photos and video somewhere to get IDs. I use special facebook page to contain all my content.
The other one is to use Facebook Open Graph. For this approach each content item should have a separate page with facebook tags. To like is you should use POST request like this:
me/og.likes?object=http:\\url.to.your.content.item

Facebook Javascript SDK automatically like a facebook page

Is it possible to request permissions to allow your application like a facebook page on behalf of the user. Also could someone highlight the part of the API that is used to like the page, eg is there FB.LikePage etc?
What you're looking for is just not possible using facebook's API, The reason is obvious, if they allow applications to like pages on behalf of the user, then its like welcoming all spammers to scam all facebook users and people won't have any idea what just happened as soon as they've allowed the application and its like liking something which is not of my interest!
I don't think facebook will allow something like this in future as well, if they allow, then they should be prepared to handle all spams/scams.
From what i've used the Facebook API it is not possible and it doesn't make any sense to allow such a behaviour

Integration With Facebook

I've never used the FaceBook SDK before so I'm not sure what I should be using or whether what I'm thinking of can actually be done. But I want to try to integrate some Facebook functionality with my ASP.NET MVC3 application.
What I need to do:
I want to be able to access someone's Facebook account (granted their permission) and allow them to send out invitations to my website. But, when a friend clicks on the link in the invitation message (whether a wall post, PM... whatever), follows through and registers on the site, I want to be able to track that (maybe by appending the ID or username of the this user to the invitation link, and then extract it from the query string when the invited person/friend registers).
Questions:
From what I've read so far and according to this link, what I think I should be using is the Facebook Connect API. Am I right?
Is what I'm trying to achieve actually doable? Basically, can I append the username to the invitation link? Is Facebook okey with that?
Do you have any good resources other than the Facebook Developer Wiki? Share them please!
P.S: I do not want users to login to my website using their Facebook account. I have my own Membership system. I just want to allow them to invite their friends to register at my website and track that. More requirements might arise but for now that is all what I need.
Your help is appreciated!
EDIT:
Ok I went ahead and created some test app using the Developer FB app to do some experiments. One thing I do not understand though...
Canvas Page: The base URL of your app on Facebook.
Canvas URL: Facebook pulls the content for your app's canvas pages from this base URL.
So what exactly is the Canvas URL? From what I understand, it's a URL to a resource (page?) on my website which Facebook can display inside the Canvas Page, is that correct?
yes
Yes
Facebook documentation + facebook developers forum, that should be all for you. Also, as you are using asp.net mvc, facebooksdk discussion will help you also if you use that library. I will stringly recommend to use that library.
Also, it seems, you are a beginner on facebook api with c#. If so, you can consider my blog post for beginners on facebook open graph api tutorial in c#. There also some other related posts also.Hope you may like them.
Let me know if you wanted to know something else also specifically.
Yes
Yes
Nope. The Developer Wiki has its issues but the Facebook Docs usually solve your problems.

Sharing a link on Twitter

Hey all,
I would like to make possible to share links of my website on twitter with a click. I've already done this for facebook, just one click and the classic facebook window appears where you can also write what you're thinking while sharing the link.
Is it possible to do the same for Twitter? I've searched through the web but I could only find apps that go on your browser and not for a website. Moreover it would be better a simple code instead of an app, if it's possible.
Thanks
You mean this?
Twitter tweet button
Twitter Dev tweet button

Resources