Giter Site home page Giter Site logo

Comments (14)

cstromme avatar cstromme commented on April 20, 2024

user_id/posts works, user_id/albums just gives me an empty result back, user_id/friends gives me an error ("Failed: Error Domain=facebookErrDomain Code=10000 UserInfo=0x5a68350 "Operation could not be completed. (facebookErrDomain error 10000.)"").

from facebook-ios-sdk.

lshepard avatar lshepard commented on April 20, 2024

If you want access to a certain type of data, make sure to ask for the permission in the authorization flow. Read this for more info:
http://developers.facebook.com/docs/authentication/permissions

However, for the "operation could not be completed" error, can you give the parameters you're calling with (including user ID, app ID, and the graph path)?

from facebook-ios-sdk.

cstromme avatar cstromme commented on April 20, 2024

Graph-path: 846525646/friends
App-ID: 122315137816686

User-ID of the one doing the call?

Any chance you could give me a short example of how to "Like" an application? And how to post to your wall an ad for the given app?

from facebook-ios-sdk.

cstromme avatar cstromme commented on April 20, 2024

Also I have added every type of permission to the authorization:

NSArray *permissions =  [NSArray arrayWithObjects:@"publish_stream", @"create_event", @"rsvp_event", @"manage_pages", @"user_about_me", @"", @"user_activities", @"user_birthday", @"user_education_history", @"user_events", @"user_groups", @"user_hometown", @"user_interests", @"user_likes", @"user_location", @"user_notes", @"user_online_presence", @"user_photo_video_tags", @"user_photos", @"user_relationships", @"user_religion_politics", @"user_status", @"user_videos", @"user_website", @"user_work_history", @"", @"read_stream", @"offline_access", @"friends_about_me", @"friends_activities", @"friends_birthday", @"friends_education_history", @"friends_events", @"friends_groups", @"friends_hometown", @"friends_interests", @"friends_likes", @"friends_location", @"friends_notes", @"friends_online_presence", @"friends_photo_video_tags", @"friends_photos", @"friends_relationships", @"friends_religion_politics", @"friends_status", @"friends_videos", @"friends_website", @"friends_work_history", nil];
[facebook authorize:@"122315137816686"
        permissions:permissions
           delegate:self];

from facebook-ios-sdk.

yujuan avatar yujuan commented on April 20, 2024

For the "Like", we currently do not have support for that yet. But we are working on that. Hopefully, we can have it in the near future.

from facebook-ios-sdk.

yujuan avatar yujuan commented on April 20, 2024

This issue should be solved by some recent check in about fix the url encoding.

from facebook-ios-sdk.

petem avatar petem commented on April 20, 2024

Does this mean the fix for eg "photoID/likes" returning correct result has been checked in at time of writing, ie august 21? Also indeed, how do we "like" something?

from facebook-ios-sdk.

yujuan avatar yujuan commented on April 20, 2024

Currently we do not have a implementation for Like yet. We are still working on that. Please check back with us on the developer website.

Thanks

from facebook-ios-sdk.

andreaorimoto avatar andreaorimoto commented on April 20, 2024

Hello yujuan, is there an update on this one? Any ETA for this feature? Specifically I'm waiting for the App-Id/likes feature.

In case this is not coming, do you have any good suggestion on how I could work around this?

thanks
Andrea

from facebook-ios-sdk.

yujuan avatar yujuan commented on April 20, 2024

For App-Id/likes, it is unlikely that we are going to use api to implement that. The reason is that using api is too easy to spam on it. We are planning on something such as dialog. Unfortunately, currently, we do not really have a good way for this feature. The alternative would be use stream publish dialog to publish to user's stream. though it is not a like.

from facebook-ios-sdk.

andreaorimoto avatar andreaorimoto commented on April 20, 2024

Thank you for the quick reply. I see what you mean about the danger of spam, I was hoping in some captcha mechanism or similar. Anyway...

The stream.publish work around does not work (I think), because, unless I misunderstood, I cannot publish to a wall of a user/page/app if the user is not friend (or !Likes) it. This is the whole point of my need. I need to allow the user to "Like" my facebook app so that I can retrieve posts from it and also post to its wall.

I guess I'll need to have my users go and push the Like button on the web. An inevitable extra step at this point.

Any ETA about the dialog solution you were mentioning? That would also work for me.
thanks a lot

from facebook-ios-sdk.

jackbandy avatar jackbandy commented on April 20, 2024

I'm having a similar problem accessing info that requires permissions. I request access for "friends_birthday" but when I try to log the date, it shows up as (null). I am pretty sure I am good on everything else because when I try to log something like their name or user ID it shows up fine.

The only birthday I can get is my own. Strange. Anybody figure this stuff out?

from facebook-ios-sdk.

UMAD avatar UMAD commented on April 20, 2024

I am getting the same error when trying to post just some text to the wall (facebookErrDomain error 10000). By the way, I am just modifying the demo project's publish stream method. Nothing else has changed. Am I doing something wrong?

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: 
                               @"the api key", @"api_key",@"This is the text of the post.", @"message", 
                               nil];

[_facebook requestWithGraphPath:@"me/feed"
                      andParams:params  
                  andHttpMethod:@"POST" 
                    andDelegate:self]; 

Also, is the api_key the API key or the App ID? I used both of them and still got the same error. Cheers and thanks for any help in advance!

from facebook-ios-sdk.

stuffmc avatar stuffmc commented on April 20, 2024

Guys, my 2 cents... Be sure to Modify your application's main AppDelegate - it was my problem. RTFM ;-)

from facebook-ios-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.