I am doing an iphone application in which i need to provide autoshare option to share automatically the text in an UIView in facebook when we click save button. i will save the facebook username and password of the user in datbase and retrived and want to assign for facebook and password without FBDialog... is it possible? Can anyone help me?
Storing a fb user / pass combo is probably out of the question. Your best option is to use the Facebook iOS SDK and then ask for offline_access & publish_stream as part of your permissions when you authenticate the user. This way you will be able to access the users data at any time and post to their wall at any time.
The method you seek to implement IS possible, just frowned upon and somewhat unethical.
Hope this helps.
Related
I am hoping a Facebook developer will see this and get back to me. I am working on a science fair project and wondering if it would be ok to download some of my friends profile pictures so I can write a program that use it for facial recognition? I have realized that Facebook's API does not support this when I tried to use the Facebook Graph Explorer API, but I just wanted to know to make sure that I have Facebook's permission to do so.
Just ask your friends for their profile pictures, no need to ask Facebook for permission
It´s very simple: do not use ANY data/media from anyone without authorization. That means, you can create an App, let your friends authorize it and then get the profile pictures of your friends. And you need to make sure everyone knows what you are doing with their data/media.
It´s not even just about Facebook, it´s a general data usage rule not to use anything from anyone without authorization.
I have a task to add links to a web page to enable the user to post a short message to Facebook. There may be multiple messages on the page, each with its own link. The intent is to launch a Facebook share dialog pre-populated with the text of the message which the user can then modify, accept and/or reject.
I'm pretty new to programming anything for Facebook. I'm fairly confused and am not sure what to ask first, so I'll go with a very basic question: what's the simplest way to do this? I gather from Facebook's documentation that I probably have to use the Javascript SDK and/or the Open Graph technology. Is this correct, or is there another option I'm missing? Is there a really clear example of this kind of solution anywhere?
Thanks!
You have to create a facebook app first so you have your app_id and app_secret.
After that you need to request permissions to the user to publish_actions. If the user accepts, you'll receive a token (you need to store it in db). If you need to publish actions in a user page instead of his own page, you also need the manage_pages permission.
You need to read the facebook graph api documentation to understand how all this works.
The access token you receive expires after certain time. So, when you receive it, you can ask for a long lived token. The page tokens doesn't expire.
Facebook evaluates your app before approving it to be in production. They ask a couple of questions about how you'll use the user's token and data. You might have to put pictures of the flow too.
As far as I know, Facebook won't allow you to send pre populated messages to the user's wall. They user has to write it.
Hope it helped a bit!
As far as I know, you can only tag friends of the account associated with the access_token currently in use. This means that if I want to be able to make an app to share photos on facebook with a tagging functionality, it's mandatory that I make an authentication system, where the user needs to type his password to login on FB and I request and store his sixty_days_access_token. This approach is fine for web apps, but is troublesome if I have to implement a desktop touchscreen interface where the users interact with the system in an environment where anyone can watch him typing his user and password. I'm facing this problem with a public touchscreen, where the users can take pictures and send it to Facebook. The interface is implemented with C++ and the curl library. As the touch is in a very crowded environment and the screen is big, we experienced that the users are intimidated to enter his acc/pass. We worked around this problem by creating a fan page to the event where we store all the photos. As we already have the fan page admin access token stored, we don't need to login the users but clearly we are not able to tag any of the user friends, which vastly reduce the viralization potential of the solution.
So, having this problem in mind, how can I face this?
Do I really need to make an authentication of the users to be able to
tag their friends?
Is there any creative solution?
Yes, if you want to tag a user or their friends in a post, you need them to log in - this is a requirement of the Photo tagging API.
The only alternative i can think of is to give the user a URL they can go to later (e.g. on their phone or PC) which will prompt them to authorise your app and do the tagging at that time.
I want to know if is there any way to check if the user has shared a link to my app via facebook.
I have implemented the ability to share a link to my app, and I just want to know if the user has shared it or not.
Thanks in advance.
When user share from your app you can store user's post id.
You can't look at a user's facebook posts without permission from the user. What would be a good idea is to, when you do create the link-sharing code, store the information that the user shared the link. Not the most ideal solution but, you know, privacy laws and stuff.
I'm using the Facebook Javascript SDK and fbml like-buttons. Using the 'edge.create' callback I know when someone has liked an url. Is it possible to get the facebook-user-id as well? Without them having to log into my App/Domain with FB Connect
I would like to double-store likes for internal statistics (since it's hard to get very fine grain domain statistics via facebook.com/insights)
Regards,
Niklas
That information is not available to developers through any of the facebook API's. You might want to store the uid's locally when the user clicks a like button.
Hope that helps.
-Roozbeh
Nope, it is not possible to get a users id simply from them clicking on a like button.
I'm not sure why you would even need a users id to simply help you track like button clicks, if you need some sort of unique identifier try using sessions or a cookie.