It would be nice to have text on the admin page for the module, that shows the callback URL that must be entered into the Foursquare oauth configuration page in order for requests to succeed.

Comments

cap60552’s picture

Something like:

  $form['foursquare_token']['callback_url'] = array(
    '#type' => 'markup', 
    '#value' => t('Foursquare Callback URL: %url', array('%url' => url('foursquare/authorize',array('absolute' => TRUE)))),
    '#prefix' => '<p>',
    '#suffix' => '</p>',    
  );

inserted at line 57, of "foursquare.module" should do the trick.

ishmael-sanchez’s picture

Status: Active » Reviewed & tested by the community

Hello John, thanks for this. I was actually trying to figure out what my callback URL was until I ran into this issue.

cap60552’s picture

you're welcome. Glad to help

mottolini’s picture

Status: Reviewed & tested by the community » Patch (to be ported)
StatusFileSize
new782 bytes

Here is the patch