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$
4
  • 1
    $\begingroup$ It works for me. It might be something temporary for you, so try restarting MMA etc. $\endgroup$
    – C. E.
    Jul 31, 2014 at 18:55
  • $\begingroup$ Actually that fixes ServiceExecute, but SocialMediaData is still broken. :( $\endgroup$ Jul 31, 2014 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, 2014 at 19:49
  • 1
    $\begingroup$ Done. Will see what they say. Thanks. $\endgroup$ Jul 31, 2014 at 19:52

1 Answer 1

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$
2
  • $\begingroup$ Do you have any update for us? :) $\endgroup$
    – VividD
    Sep 14, 2015 at 15:34
  • $\begingroup$ @VividD Forgot all about this. Updated answer. $\endgroup$ Sep 14, 2015 at 17:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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