2

I'm trying to include my free wordpress.com blog on my personal website using CakePHP. Displaying all the posts and accessing to each post on my website works fine but I can't post a comment. I'm getting :

[ 'error' => 'unauthorized', 'message' => 'That API call is not allowed for this account.' ]

every time I submit a comment and I'm wondering why?

1
  • I've read on Wordpress that : "If everything works correctly and the user grants authorization, you will get back a JSON-encoded string containing the token and some basic information about the blog" but I'm getting blog_id => '0' and blog_url => null :/ Commented Jul 23, 2015 at 21:58

2 Answers 2

1

I had to use the authorize url instead of the authenticate url.

Sign up to request clarification or add additional context in comments.

Comments

0

Ok i found it. Here is details where to change.

$url_to = AUTHENTICATE_URL .'?'. http_build_query( $params );

I have changed AUTHENTICATE_URL with Authorize_URL and it works for me.

$url_to = Authorize_URL .'?'. http_build_query( $params );

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.