Giter Site home page Giter Site logo

Comments (5)

Faiyaz avatar Faiyaz commented on April 20, 2024

@simonengelhardt - Can you please look into this.

from facebook-instant-articles-sdk-php.

simonengelhardt avatar simonengelhardt commented on April 20, 2024

@Faiyaz Sorry to hear that. I just looked into our logs and it seems you have since been able to import articles. Did you manage to resolve the issue?

If not, could you show a little more of the code where you are calling this, so I can look into what may be causing this? Also, if you could please double check the app id and app secret you are passing in? If those look good, please check that the access token is a page access token with the necessary permissions as described in the Instant Articles API docs (you can use the access token debugger for this).

from facebook-instant-articles-sdk-php.

Faiyaz avatar Faiyaz commented on April 20, 2024

Thanks for getting back. So I was unable to get this working, as I kept getting that error. So i switched to using RSS for the time being. As for my code, it is exactly the same as the one setup on quickstart.md

$article = InstantArticle::create();
$transformer->transform($article, $someDocument);

// Instantiate an API client
$client = Client::create(
    '{using our app-id}'
    '{using our app secret}',
    '{page access token}',
    '{page id}',
    false // development envirorment?
);

// Import the article
try {
    $client->importArticle($article, $take_live);
} catch (Exception $e) {
    echo 'Could not import the article: '.$e->getMessage();
}

I have gotten the page access token via the graph api page.

from facebook-instant-articles-sdk-php.

simonengelhardt avatar simonengelhardt commented on April 20, 2024

@Faiyaz I just sent you an email to get a little more information from you, so I can look into the cause. In the meantime, I'm glad you got up and running with RSS.

I will comment back here when we have resolved the issue.

from facebook-instant-articles-sdk-php.

simonengelhardt avatar simonengelhardt commented on April 20, 2024

Closing due to inactivity in the email dialogue. @Faiyaz feel free to send me the requested additional info per email and reopen if this issue still reproduces.

from facebook-instant-articles-sdk-php.

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.