Neverbirth / nativetwitter-ane

Automatically exported from code.google.com/p/nativetwitter-ane
0 stars 0 forks source link

ANE no longer working #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. When calling the "getHomeTimeLine" or "getTWRequest" they both return the 
resultCode "403"
2. getTwitterUsernames still works
3. using the example class when calling getHomeTimeline logs out: "Home 
Timeline: 403 - "

What is the expected output? What do you see instead?
I see errors with the Result code 403 from Twitter.

What version of the product are you using? On what operating system?
NativeTwitter-101.ane on Mac OSX 10.8.5 in Flashbuilder 4.7

Please provide any additional information below.
This was working a couple months ago.

Original issue reported on code.google.com by gro...@gmail.com on 18 Feb 2014 at 12:07

GoogleCodeExporter commented 9 years ago
Will try to look into it, however I don't have a sh*t of time... a couple of 
months ago looked into a possible update for the ANE (not related to this), but 
had to left it aside. Also, I'm currently working into another interesting ANE, 
and want to make at least one update to the Maps one.

Please, reply again this friday and saturday so I don't forget about it.

Original comment by neverbi...@gmail.com on 18 Feb 2014 at 8:47

GoogleCodeExporter commented 9 years ago
I've just heard Twitter has made some changes in its API, it's now restricted 
or something like that, and some companies have disabled their Twitter support 
for now.

I don't know, we'll see when I get some time to investigate this issue further.

Original comment by neverbi...@gmail.com on 19 Feb 2014 at 3:47

GoogleCodeExporter commented 9 years ago
Ah, figures. Damn you Twitter!!!

Thanks for looking into it.

WIll see if I can find another alternative in meantime.

Original comment by gro...@gmail.com on 19 Feb 2014 at 5:08

GoogleCodeExporter commented 9 years ago
Well, I cannot confirm it, I just happened to hear this info. Will update again 
as soon as possible.

Original comment by neverbi...@gmail.com on 19 Feb 2014 at 5:11

GoogleCodeExporter commented 9 years ago
Decided to give a quick look into this. It seems Twitter has dropped the API 
access through http, and now it can only be accessed through https. Could you 
recompile the code making that change? if not, well, it may take me a bit of 
time.

Original comment by neverbi...@gmail.com on 19 Feb 2014 at 5:16

GoogleCodeExporter commented 9 years ago
Never have and don't really know how to compile an ANE but can look into it.

Original comment by gro...@gmail.com on 19 Feb 2014 at 5:24

GoogleCodeExporter commented 9 years ago
Do you have a Mac installation? You need it. If so, just change:

#define TWITTER_URL @"http://api.twitter.com/1.1/"

to

#define TWITTER_URL @"https://api.twitter.com/1.1/"

In NativeTwitter.m. Modify the build configuration file so it points to your 
own paths, and run "ant" in a terminal window. It's fairly easy and takes a 
minute or less, but when I update the ANE I'd like to make some changes to it, 
hopefully this weekend.

Original comment by neverbi...@gmail.com on 19 Feb 2014 at 5:42

GoogleCodeExporter commented 9 years ago
I am on Mac, but this is a little over my head. Will try to read up on it. 
Found a couple articles on Adobe's site regarding building/compiling ANEs.

Original comment by gro...@gmail.com on 19 Feb 2014 at 5:56

GoogleCodeExporter commented 9 years ago
Well, you don't need to read any of it. If you download the source code you 
just have to make the two changes I commented before and call ant in the 
commandline, it will do everything else for you, compile the iOS library, the 
swf file, and package the final ANE.

Original comment by neverbi...@gmail.com on 19 Feb 2014 at 6:00

GoogleCodeExporter commented 9 years ago
Hmmm, I'm close, but get this message when running ant:

iOSCopy:

BUILD FAILED
/Users/xxx/Flash/extensions/nativetwitter-ane/trunk/build.xml:53: Warning: 
Could not find file 
/Users/xxx/Flash/extensions/nativetwitter-ane/trunk/NativeIOS/NativeTwitter/buil
d/Release-iphoneos/libNativeTwitter.a to copy.

I changed the build.properties file to update the AIR_SDK_PATH 

Am I missing something, is there anything else that needs to be changed?

Original comment by gro...@gmail.com on 19 Feb 2014 at 6:30

GoogleCodeExporter commented 9 years ago
Does it actually manage to compile a libNativeTwitter.a binary? 

Original comment by neverbi...@gmail.com on 19 Feb 2014 at 6:32

GoogleCodeExporter commented 9 years ago
Yes, that binary compiled. 

[exec] Stripping ../../Binaries/iOS/libNativeTwitter.a
     [exec]     cd "/Users/xxx/Flash/extensions/nativetwitter-ane/trunk/NativeIOS/NativeTwitter"
     [exec]     setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/usr/local/munki:/Applications/acquia-drupal/drush"
     [exec]     /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -S "/Users/xxx/Flash/extensions/nativetwitter-ane/trunk/NativeIOS/NativeTwitter/../../Binaries/iOS/libNativeTwitter.a"
     [exec] 
     [exec] 
     [exec] ** BUILD SUCCEEDED **

Any chance you could do a quick compile with the modification needed?

Original comment by gro...@gmail.com on 19 Feb 2014 at 8:19

GoogleCodeExporter commented 9 years ago
Will try to make a small update later today, wanted to make it sooner, but I 
don't know if it will be possible.

According to that log, it seems like the iOS library is being directly compiled 
into the final path? if so, you could edit the build.xml file to omit the 
iOSCopy step.

Original comment by neverbi...@gmail.com on 21 Feb 2014 at 8:16

GoogleCodeExporter commented 9 years ago
Thank you, sir. Will be out of town/offline for a couple weeks so won't be able 
to test, but the help is greatly appreciated.

Original comment by gro...@gmail.com on 21 Feb 2014 at 3:25

GoogleCodeExporter commented 9 years ago
Hello,

Checking in.

Were you able to get it to compile?

I tried tinkering with build.properties and changed the lib path to 
IOS_LIB_PATH = ${BINARIES_FOLDER}/iOS/lib${PROJECT_NAME}.a

That got it further along in the compilation until throwing this message:

compile:
     [java] ../nativetwitter-ane/trunk/AS/src/extension.xml: error 102: Invalid namespace http://ns.adobe.com/air/extension/3.4"

Which I'm guessing has to do with the AIR SDK that comes with FB found here: 
/Applications/Adobe Flash Builder 4.7/sdks/4.6.0

When changing the "AIR_SDK_PATH" path to: /Applications/Adobe Flash Builder 
4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722/AIRSDK3.4 it throws:
"[exec] Unable to access jarfile /../lib/compc-cli.jar"

Trying to update the AIR in the "sdks" folder throws a similar error.

Kind of stuck and could use any advice/help.

Thanks,
Mark

Original comment by gro...@gmail.com on 12 Mar 2014 at 6:32

GoogleCodeExporter commented 9 years ago
Nevermind, got it!

I went back and tried again to update the AIR/Flex SDK here: 
/Applications/Adobe Flash Builder 4.7/sdks/4.6.0

Somebody had posted on an Adobe forum to use the archived AIR 3.4 SDK without 
the compiler. I tried with the compiler first and that didn't work.

So here is a working version of the ANE for anybody that needs it: 
http://www.2ndstringproductions.com/stuff/software/NativeTwitter-101.ane

Please let us know if able to make any more updates.

Best,
Mark

Original comment by gro...@gmail.com on 12 Mar 2014 at 9:37