Note that there are some explanatory texts on larger screens.

plurals
  1. POYahoo api bbauth: Invalid (missing) src or appid
    primarykey
    data
    text
    <p>I'm trying to load yahoo users' emails (but I'm stuck on the auth step):</p> <pre><code>define("APPID", 'dj***NQ--'); define("SECRET", '3***7'); // Include the proper class file $v = phpversion(); if ($v[0] == '4') { include("includes/yahoo/ybrowserauth.class.php4"); } elseif ($v[0] == '5') { include("includes/yahoo/ybrowserauth.class.php5"); } else { die('Error: could not find the bbauth PHP class file.'); } $authObj = new YBBauthREST(APPID, SECRET); //echo APPID; // If Yahoo! isn't sending the token, then we aren't coming back from an // authentication attempt if (empty($_GET["token"])) { // You can send some data along with the authentication request // In this case, the data is the string 'some_application_data' echo 'You have not signed on using BBauth yet&lt;br /&gt;&lt;br /&gt;'; echo '&lt;a href="'.$authObj-&gt;getAuthURL('some_application_data', true).'"&gt;Click here to authorize&lt;/a&gt;'; return; } </code></pre> <p>But I get this error in the yahoo landing page: </p> <blockquote> <p>Invalid (missing) src or appid</p> </blockquote> <p>So I'm guessing here is the problem?</p> <pre><code>echo '&lt;a href="'.$authObj-&gt;getAuthURL('some_application_data', true).'"&gt;Click here to authorize&lt;/a&gt;'; </code></pre> <p>Should I replace 'some_aplication_data' with something else?</p> <p><strong>Edit:</strong></p> <p>I've also tried:</p> <pre><code>$callback = YahooUtil::current_url()."?in_popup"; $auth_url = YahooSession::createAuthorizationUrl(APPID, SECRET, $callback); echo '&lt;a href="'.$auth_url.'"&gt;Click here to authorize&lt;/a&gt;'; </code></pre> <p>But it won't create the link or show errors (script dies).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload