Problem w/ PHP library foursquare-async

142 views
Skip to first unread message

msniper101

unread,
Feb 14, 2011, 12:20:43 AM2/14/11
to foursquare API
Hi all,

Thanks in advance for your help.

I am using WAMP in localhost trying to develop the OAuth2 foursquare-
async library.


Problem is, in the step that request the Token-Access, it times out.
I go to the author of the library's website and they know the problem
and provided a fix which I implemented. However it still doesn't work
at the Token-Access step.


Does anyone else have this similiar problem running the same library
in WAMP?

please help.
Message has been deleted

Garbit

unread,
Feb 14, 2011, 1:06:47 PM2/14/11
to foursquare API
I'm also having this same problem, WAMP set up with PHP 5.3.4
Even running the simpleTest.php script that is provided fails with;
Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp
\www\EpiCurl.php on line 73
Call Stack
# Time Memory Function Location
1 0.0005 694760 {main}( ) ..\simpleTest.php:0
2 0.0024 971664 EpiFoursquare->get( ) ..\simpleTest.php:
26
3 0.0024 971744 EpiFoursquare->request( ) ..
\EpiFoursquare.php:72
4 0.0028 978720 EpiFoursquareJson->__get( ) ..
\EpiFoursquare.php:0
5 0.0028 979704 EpiCurlManager->__get( ) ..\EpiCurl.php:0
6 0.0028 979704 EpiCurl->getResult( ) ..\EpiCurl.php:
177

Philipp Jaquet

unread,
Feb 14, 2011, 1:20:15 PM2/14/11
to foursqu...@googlegroups.com
Not sure if it applies to you, but I had general problems with CURL on
windows 7, seems to be an issue with curl, not the
foursquare-library...

> --
> To post to this group, send email to foursqu...@googlegroups.com
>
> http://groups.google.com/group/foursquare-api

jmathai

unread,
Feb 15, 2011, 11:01:21 AM2/15/11
to foursquare API
What operating system and version of php are you using?

Garbit

unread,
Feb 15, 2011, 4:01:14 AM2/15/11
to foursquare API
I've been working fine with facebook + twitter OAuth on Windows 7
which would suggest that it's the api

Garbit

unread,
Feb 15, 2011, 4:54:15 AM2/15/11
to foursquare API
Just tried same scripts on external apache host and got the following;

Fatal error: Uncaught exception 'EpiFoursquareException' in /home/
a8388488/public_html/EpiFoursquare.php:246
Stack trace:
#0 /home/a8388488/public_html/EpiFoursquare.php(202):
EpiFoursquareException::raise(Object(EpiCurlManager), false)
#1 /home/a8388488/public_html/simpleTest.php(27): EpiFoursquareJson-
>__get('response')
#2 {main}
thrown in /home/a8388488/public_html/EpiFoursquare.php on line 246

Is there another OAuth library that I could use? I'm also getting
confused between OAuth v 1 and v 2 because on the Official OAuth
website it says its still in draft and there's loads of oauth
libraries around, of which im not sure if its even compatible with
foursquare;

http://code.google.com/p/oauth2-php/

OR

http://code.google.com/p/oauth-php/

Thanks for your help

jmathai

unread,
Feb 15, 2011, 11:57:22 AM2/15/11
to foursquare API
Can you try to comment out lines 121 and 122 in EpiFoursuare.php?
https://github.com/jmathai/foursquare-async/blob/master/EpiFoursquare.php#L121

Gabe

unread,
Feb 23, 2011, 4:18:33 AM2/23/11
to foursquare API
I too am having the same issue with EpiFoursquare.php, as shown here:

http://www.gabrielmurphy.com/4square/simpleTest.php

I did comment out lines 121 and 122 with no luck...


On Feb 15, 10:57 am, jmathai <jmat...@gmail.com> wrote:
> Can you try to comment out lines 121 and 122 in EpiFoursuare.php?https://github.com/jmathai/foursquare-async/blob/master/EpiFoursquare...

Scott Wilcox

unread,
Feb 23, 2011, 3:16:20 PM2/23/11
to <foursquare-api@googlegroups.com>
Hi,

Take a look at my fork at https://github.com/dordotky/foursquare-async (I don't think Jaisen's pulled my fixes yet). Let me know if that version works.

Scott.

jmathai

unread,
Feb 24, 2011, 5:41:14 PM2/24/11
to foursquare API
I merged Scott's fixes into the main repository. Let me know if that
resolves your issues.

On Feb 23, 12:16 pm, Scott Wilcox <Sc...@dor.ky> wrote:
> Hi,
>
> Take a look at my fork athttps://github.com/dordotky/foursquare-async(I don't think Jaisen's pulled my fixes yet). Let me know if that version works.
Reply all
Reply to author
Forward
0 new messages