Facebook API with iphone - objective-c

am new to iphone technology and i have been allocated on a project where i will be using an API of facebook so i have downloaded the facebook api from this link http://github.com/facebook/facebook-ios-sdk
and i read its documentation where i got confused this is what i want to do:
1) The image from the UIImageView must be posted by the user to his facebook album, and that album will be selected by the user from his/her account.
2) The user can add comment on that photo which he/she added.
3)Logout logic
But when i draged and droped the FBConnect folder, in the documentation its said that i have to set the header but how and what to set in the header i am not aware of that, also when i tried to do login with the appID and appKey which i generated from Facebook developers its not helping me at all
Please help me out, am confused on this topic completely, if you provide me some snaps of the source code or some links then it would be very nice of you

You might consider using ShareKit. It has made connecting to Facebook easier for some developers. You can find it at this link: http://www.getsharekit.com/

Related

How can i add a snapchat sharing button to my website. Is it possible to add Sharing button for Snapchat?

I am developing a website.I have added the many social login or sharing buttons,links like facebook,tweeter,gplus,pintrest on my php,html based website.
Now i have to add the social sharing button for snapchat.Is it possible to provide a link or button on my website to share a snap,image,content of stories in snapchat ?
I have tried to find out for any API or snapchat link or button to achive, but doesn't found any thing.
I also saw the question doesn't have any answer,reply,comments.
Is it possible to add Sharing button for Snapchat?
From the snapchat blog link following, I found that there is no API available provided by snapchat.
http://blog.snapchat.com/post/99998266095/third-party-applications-and-the-snapchat-api
Is it possible to share contents of snapchat?
That blog post is more talking about using a 3rd party app intead of the snapchat app, this is something i can never see being allowd but is also not what i think you are after.
I assume you mean that you want to be able to share a screenshot or specific image on snapchat. I have not been able to find a way of doing this, the closest thing was a 3rd party app that enabled link insertion to snapchat (http://www.gizmodo.com.au/2016/06/you-can-now-embed-links-in-snapchat-screenshots-using-emoji/)
On the other hand, if you want them to connect to you, this can be done with the url https://www.snapchat.com/add/yourUserName
hope this helps

Is it possible to add Sharing button for Snapchat? [duplicate]

I am developing a website.I have added the many social login or sharing buttons,links like facebook,tweeter,gplus,pintrest on my php,html based website.
Now i have to add the social sharing button for snapchat.Is it possible to provide a link or button on my website to share a snap,image,content of stories in snapchat ?
I have tried to find out for any API or snapchat link or button to achive, but doesn't found any thing.
I also saw the question doesn't have any answer,reply,comments.
Is it possible to add Sharing button for Snapchat?
From the snapchat blog link following, I found that there is no API available provided by snapchat.
http://blog.snapchat.com/post/99998266095/third-party-applications-and-the-snapchat-api
Is it possible to share contents of snapchat?
That blog post is more talking about using a 3rd party app intead of the snapchat app, this is something i can never see being allowd but is also not what i think you are after.
I assume you mean that you want to be able to share a screenshot or specific image on snapchat. I have not been able to find a way of doing this, the closest thing was a 3rd party app that enabled link insertion to snapchat (http://www.gizmodo.com.au/2016/06/you-can-now-embed-links-in-snapchat-screenshots-using-emoji/)
On the other hand, if you want them to connect to you, this can be done with the url https://www.snapchat.com/add/yourUserName
hope this helps

Can we authenticate facebook user which view page in UIWebView?

I work on application which provide bonus content for certain actions Facebook Share, Facebook Like of our page and etc.
I have problem with Facebook Like, as we know Facebook SDK ToS don't allow us (developers) to programmatically like Facebook page, so I have two ideas
Open the native Facebook APP, which is straight forward.
UIWebView within' our APP. But here is the problem
How to authenticate the user in facebook, to skip the inconvenience of double login. (The first time is within' our app, to be able to fetch the result of /me/likes/(id))?
I also faced the same problem for liking pages
i found this
https://github.com/brow/FacebookLikeView it is very help full go through this it shows how to like face book pages by using web view
hope this helps

Integrate Dropbox app in my app

So, this is the task I want to achieve. In my app, I have a text field which displays a list of all the apps and files that are present in my iOS device. One of them will be dropbox. When I tap on drop box, it should open the dropbox app and ask for user credentials. Once the user enters his credentials, it should save them and it shouldn't ask the next time he logs in again. Now, in that textbox that I mentioned earlier, I should get the list of the files that are there in my dropbox folder.
I'm new to iOS app development stuff so any help in the form of links, documentation will help alot. Please give me a brief idea on how to achieve this task.
Since you said links:
Tutorial Links
http://www.mathiastauber.com/integration-o-dropbox-in-your-ios-application/
http://www.mathiastauber.com/integration-of-dropbox-in-your-ios-application-authentication/
http://programmaticallytakingscreenshot.blogspot.com/2011/04/dropbox-integration-in-iphone.html
Dropbox Links
http://www.dropbox.com/developers/apps
https://www.dropbox.com/developers/start/setup#ios
You should consider using Table Views to show your data instead of Text Fields.
http://www.appcoda.com/ios-programming-tutorial-create-a-simple-table-view-app/
Apple Documentation on Table Views:
http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/tableview_iphone/AboutTableViewsiPhone/AboutTableViewsiPhone.html
Good luck with this!
What you are proposing violates the sandboxing principle of iOS. Apps don't know about anything outside their own documents folder, and do not have permission to read or write outside the area.
Files stored in Dropbox are accessible via the Dropbox API, so you will be able to achieve that part of your design, but most of the other apps on the device will not be visible or accessible to you.

How can I post a video, via Facebook's Connect API, to my Facebook profile page?

Has anyone posted a video via the Facebook Connect API to their profile / feed page?
Ideally, the video should be queued to the first frame with the superimposed Facebook's blue right arrow "play" button. Or if a thumbnail representing the video has to also be uploaded (rather than the video being queued to the first frame) as well, this is fine.
Also, when the video, or thumbnail, on the profile page is clicked, the video plays where it is - rather than going to another page off Facebook to be played there.
The question may have not been correctly worded. The term "API" was misleading to a couple of folks - and I apologize for that.
What I was trying to do was to "share" a video by linking it in Facebook, AND to have it play in the profile feed (ie. to not leave the Facebook site while viewing the video - just like YouTube and Hulu.com do).
After digging into the JavaScript that Hulu was using to get this behavior, we noticed that a link tag was missing between our version of the <meta> and <link> tags, and Hulu's.
Facebook's web page, http://www.facebook.com/share_partners.php, was missing a tag that you should have if the content is a video, and you want it played in the profile feed.
Along with:
<link rel="video_src" href="http://www.example.com/player.swf?video_id=123456789"/> ...
You should include:
<link rel="media:video" href="http://www.example.com/player.swf?video_id=123456789"/>
That will get it to play in the feed. BUT, your domain name must be whitelisted.
To get your domain whitelisted, fill out this form: http://www.facebook.com/share_partners.php#/developers/developer_help.php
I got a reply, and approval, within a day! Kudos to the Facebook developer support staff!
Use the Video.upload as described by stevedbrown or the Stream API or if you want to go simple share the link via API or share link.
Have you read the Facebook developer wiki page on this? That explains what is possible and how, it's pretty decent.