Login   Register  
PHP Classes
elePHPant
Icontem

Usage Analysis

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Instagram API integration with PHP  >  All threads  >  Usage Analysis  >  (Un) Subscribe thread alerts  
Subject:Usage Analysis
Summary:Instagram API pointer
Messages:9
Author:Darren Conyard
Date:2013-01-11 11:50:55
Update:2013-02-04 11:38:56
 

  1. Usage Analysis   Reply   Report abuse  
Picture of Darren Conyard
Darren Conyard
2013-01-11 11:50:55
Hi Yasir,

This is a really nice class.

One point that is missing from your notes is the distinction between first registering an application and then clicking on the manage clients link to then add a client to be able to enter redirect URI information to then obtain the needed client ID and client secret pass.

Thanks again for the class.

Best Regards

Darren Conyard

  2. Re: Usage Analysis   Reply   Report abuse  
Picture of Yasir Siddiqui
Yasir Siddiqui
2013-01-15 09:09:39 - In reply to message 1 from Darren Conyard
Thanks Darren i will update the docs.

  3. Re: Usage Analysis   Reply   Report abuse  
Picture of Alexander Conroy
Alexander Conroy
2013-01-15 11:38:44 - In reply to message 2 from Yasir Siddiqui
I have jsut over viewed the class and formatted to work with Wordpress Options. I use user_meta to store data per user. This should be interesting once it is done will share if I have any problems with the class. Looks very promising and one of the cleaner PHP implementations I have run across. Excellent!

Connect with me via Twitter and Google+ would love to keep up with you. All my profiles can be found at geilt.com

  4. Re: Usage Analysis   Reply   Report abuse  
Picture of adelmaer
adelmaer
2013-01-28 17:09:12 - In reply to message 2 from Yasir Siddiqui
Hello Yasir,

Firstly - Great script and thanks for GNU GPL.
All in one and works good.

Maybe i missed some lines of code, but I noticed, there is a lack of "log out" of the Instagram API (Auth) realization.
If i go to "https://instagram.com/accounts/logout/" and return back to index.php the script still continue to be logged in.

I've heard logging out can be done via iframe but not sure.

Can it (logging out) be done via your class or script?

Thanks.

  5. Re: Usage Analysis   Reply   Report abuse  
Picture of Yasir Siddiqui
Yasir Siddiqui
2013-01-29 09:03:51 - In reply to message 3 from Alexander Conroy
Hi Alexander thanks for the appreciation. It will really be a pleasure for me if this class can help you in any way.

  6. Re: Usage Analysis   Reply   Report abuse  
Picture of Yasir Siddiqui
Yasir Siddiqui
2013-01-29 11:58:34 - In reply to message 4 from adelmaer
Hi Adelmaer,

I looked into log out issue and found that access token still remains valid even when you log out from Instagram account. May be Instagram server should invalidate access token after user logs out from the account but right now token still remain valid.

As this class uses session to store access token you can handle log out at you end by creating a log out script and unset the access token in the session variable.

Hope this helps.

  7. Re: Usage Analysis   Reply   Report abuse  
Picture of thomas
thomas
2013-02-04 10:11:36 - In reply to message 6 from Yasir Siddiqui
Hello Yasir,

Firstly, Thank you for your great API. I've tried to unset all sessions like unset($_SESSION['AccessToken']); as you suggested. But all sessions are still appeared again when redirect to index.php. Don't really know how to logout.

Thanks.

  8. Re: Usage Analysis   Reply   Report abuse  
Picture of Yasir Siddiqui
Yasir Siddiqui
2013-02-04 11:21:45 - In reply to message 7 from thomas
Hi Thomas,

When you unset session variable then redirect to index.php this check in code index.php from line 22 to 25 works

if (!isset($_SESSION['AccessToken'])) {
header('Location: redirect.php?op=getauth');
die();
}

when this code executes it again redirects to instagram server and gets access token and then sets session variable again and then redirects to index.php with all session variable set.

So you have to change code from line 22 to 25 as per your requirement.

  9. Re: Usage Analysis   Reply   Report abuse  
Picture of thomas
thomas
2013-02-04 11:38:56 - In reply to message 8 from Yasir Siddiqui
Hello Yasir,

That's right. I forgot about this.

Thank you very much for your help. Hope you will continue to improve this great API.