GithubHelp home page GithubHelp logo

ios-howtos's Introduction


This project is not actively maintained. Proceed at your own risk!


ios-howtos

Samples corresponding to the iOS tutorials on http://developers.facebook.com

  • FBGraphAPISample has example calls to the Graph API to request the user's information, request an object, post an object to the graph, stage an image using Facebook's image staging service, and delete an object. You can find the tutorial for this sample here.

  • FBLoginCustomUISample implements Facebook Login using Graph API calls and a custom button. You can find the tutorial for this sample here.

  • FBLoginUIControlSample shows a simple login with Facebook using the standard Facebook Login button. You can find the tutorial for this sample here.

  • FBOGSample publishes an Open Graph story using Graph API calls. This app also implements Facebook Login and asks for the necessary permissions to post to Facebook on the user's behalf. Find the tutorial here.

  • FBOGSampleSD publishes an Open Graph story using the Share Dialog. Find the tutorial here.

  • FBShareSample shows how to publish a link and a status updates using both methods: the Share Dialog and Graph API calls. Find the tutorial here.

ios-howtos's People

Contributors

chrisblizzard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ios-howtos's Issues

"OG story posted, story id:" nothing on my Facebook wall

Hi @caabernathy,

I'm trying to share a photo on my user's facebook wall, just like instagram. I followed your tutorial thoroughly "FBOGSample", and followed exactly the steps in this tutorial as well:
https://developers.facebook.com/docs/ios/open-graph#story

In the log I get "Permission granted, publish the OG story", then "Successfuly staged image with staged URI:"

I get back the object ID "object id: 660868330663273", and then I "successfully" post it on my wall: "OG story posted, story id: 10203331263136847" I get no errors, everything is working on client side - I even see my post in the "Object Browser", but not in my wall.

What's wrong? Help please!

Testing Login Flow / #6 “Log me out of other devices” not working

Hello,

In your Testing your Login Flow there is a step 6 as follows:

  1. Someone changes the Facebook password after logging in with Facebook to your app
    In this case, your token will be invalid and you should notify users that their Facebook session has >expired and ask them to log in again.

Change your Facebook password and select “Log me out of other devices”
Go to your app and tap on the "Log in with Facebook” button
Tap OK to accept the read permissions (and OK again to accept write permissions where applicable)
Go to app settings on Facebook and verify that the granted permissions are there

So I did with my app and with FBLoginCustomLoginUISample. Unfortunately this doesn't seem to work.
Once loged in the app, I go to Facebook, change my password and select “Log me out of other devices”. Next I restart the app.
The app detects FBSessionStateCreatedTokenLoaded and makes the call to refresh the token without UI. The call succeeds so the session transitions in to FBSessionStateOpen, which is not correct.

Is this a bug in the sample code or in the FB single sign in process which fails to invalidate the active sessions? Am I doing something wrong?

Thank you

FBDialog Photo Sharing issue

Hello,
I am sharing photo using FBDialogs presentShareDialogWithPhotoParams method. This method share photo successfully on my wall but always return error. That means post photo with NSError.
Error is like....
////////////////////////////////////////
Error Domain=com.facebook.Facebook.platform Code=103 "The operation couldn’t be completed. (com.facebook.Facebook.platform error 103.)" UserInfo=0x16d874f0 {error_code=103, error_description=An unknown error occurred., app_id=593434950703264, error_reason=(
{
result = 1;
}
)}
////////////////////////////////////////
Why this happen?

buttonClicked not found

The file CustomLoginViewController.m contains a method in the interface that should be deleted: buttonClicked

iOS Facebook sharing using Open Graph Share Dialog fails - error Code 102

I was following FBOGSampleSD for sharing with my open graph objects.
Initially the code worked fine with stored login in my native iOS FB app but the moment I switched login it stopped working.
The error I get is this:

(com.facebook.Facebook.platform error 102.)" UserInfo=0x20141c70 {error_code=102, error_description=An error occurred during publishing., app_id=244500685679948, error_reason=The operation couldn’t be completed. (FBAPIErrorDomain error 3506.)}

Have posted it here too:
http://stackoverflow.com/questions/27324966/ios-facebook-posting-using-open-graph-fails-error-code-102

Please help...

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.