2
$\begingroup$

I am trying to use the Social features of Mathematica 10. The Facebook interaction works, but with Twitter I am getting "Cannot import data as JSON".

Example:

In[16]:= ServiceExecute["Twitter", "LastTweet", {"ScreenName" -> 
   "stephen_wolfram"}]

During evaluation of In[16]:= Import::fmterr: Cannot import data as JSON format. >>

Out[16]= ServiceExecute["Twitter", "LastTweet", {"ScreenName" -> 
   "stephen_wolfram"}]

I have tried ClearSystemCache[] but this has no impact. I am getting the valid token from Twitter and it is marked as an allowed App with read access.

If I use SocialMediaData[] it fails but returns numbers. Example:

In[17]:= SocialMediaData["Twitter", "Followers"] // Short

Generates this: output showing numbers

Can anyone tell me what I am doing wrong, or how to diagnose/solve this?

[Edit]

Further testing.

Restarting the client then ServiceExecute[] works. However SocialMediaData[] doesn't. Restarting the client and running SocialMediaData[] first fails but displays some names. Eg.

enter image description here

Also I've noticed that ServiceExecute allows you to save your Auth key, but SocialMediaData doesn't.

$\endgroup$
  • 1
    $\begingroup$ It works for me. It might be something temporary for you, so try restarting MMA etc. $\endgroup$ – C. E. Jul 31 '14 at 18:55
  • $\begingroup$ Actually that fixes ServiceExecute, but SocialMediaData is still broken. :( $\endgroup$ – Simon O'Doherty Jul 31 '14 at 19:40
  • 1
    $\begingroup$ Maybe send a message as "product feedback" here and see what they have to say about intermittent problems. Perhaps there is an explanation you can report back. $\endgroup$ – C. E. Jul 31 '14 at 19:49
  • 1
    $\begingroup$ Done. Will see what they say. Thanks. $\endgroup$ – Simon O'Doherty Jul 31 '14 at 19:52
2
$\begingroup$

This is the temporary answer at this time.

I got a response from support and they have reproduced the issue and reported it to development. So it is under investigation.


Update: 14th Sept 2015. I've tested this on Mathematica 10.2 and it appears to work for the first option. You get a popup to authenticate with Twitter. You can have it remember connection.

For the other calls, it still seems to fail.

$\endgroup$
  • $\begingroup$ Do you have any update for us? :) $\endgroup$ – VividD Sep 14 '15 at 15:34
  • $\begingroup$ @VividD Forgot all about this. Updated answer. $\endgroup$ – Simon O'Doherty Sep 14 '15 at 17:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.