Comments (5)
@simonengelhardt - Can you please look into this.
from facebook-instant-articles-sdk-php.
@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.
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.
@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.
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)
- Failed Connection with graph.facebook.com HOT 2
- Handling of Ads Settings fields
- Support paragraphs inside Blockquote
- FAN on AMP? HOT 2
- Validate Analytics Configuration
- Installation problem on laravel 5.6 HOT 1
- RTL problem HOT 2
- Unable to use ConstantGetter with InteractiveRule HOT 4
- autoplay video in fullscreen HOT 1
- Transformer's transform method does not account for settings
- Problem in rule "multiple" - IA HOT 3
- Query params in related articles
- [BUG] : Problem with the Span and Anchor Rule
- Travis CI Php 5.5 and Php 5.4
- Fetch
- Integration in Symfony 5 is not possible because of css selector version in composer.json HOT 1
- FBInterstitialAd is gives all time "server error"
- support php 8 HOT 2
- Use InstantArticleInterface instead of InstantArticle as parameter type for Transformer methods
- How to create a scheduled facebook instant article through PHP SDK
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facebook-instant-articles-sdk-php.