Facebook android app integration. Help needed. - Off-topic

Hey guys, I'm relatively new to the android programming scene and I'm trying out a simple app idea I have. My app idea is to be a way for people to make posts to facebook and that's it. I've got the code working but what really bugs me is how the logging in system works and how the posting system works. The way I have done it, the app does not handle the authentication flow nor the posts, but rather a pop-up comes up and asks them to sign in or make a post - similar to using the browser. This does not work with the design of the rest of the app along with slowing it down. I need help. I want my app to authorize the user, similar to how the official Facebook android app logs people in; there are no pop-ups and everything is handled by the app (same to be done with making posts). If you guys could help me out by blatantly telling me what to do, sending me any articles that explain how to do it, or any other help I would appreciate it. Thanks!
NOTE: I have glanced around the Facebook developer site and I'm completely confused by their documentation. I know there's something about fragments, but I'm not sure if I understand it completely.

Okay guys, I found this thread at Stack Overflow and found the answer. In case anyone else had a similar question. http://stackoverflow.com/questions/...x-send-to-the-users-wall-with-facebooks-andro

Related

Babble

I downloaded Babble, a free app which resembled the facebook app which i saw in development which looked very promising, good UI, not great, could be punched up a little bit, i think it might be a beta though. I didnt see a fb chat portion of the program or the ability to view pictures, but hopefully on a final version there should be something
Hi,
I'm the developer of Babble. The application is very beta right now, I just wanted to hear some input from people who download this first version. More features will be included once I am sure they work as expected.
The ability to view photos is actually present in the version on the market. Just long press on a wall post and under the person's name you have the option to view albums or view photos of that person.
One thing that's coming soon is notifications - new messages, new pokes, new friend requests, replies to your comments etc. Also coming some time later: tagging photos, uploading photos to albums other than the default one, creating and viewing events and groups. I'm also working on optimising the wall to be a bit faster, but it's not easy with all the photos in there.
Chat cannot be included in this application, unfortunately, at least until Facebook releases an open API for that.
What makes Babble different from the other Android Facebook apps out there is that it uses the official Facebook APIs and abides by the Facebook Terms and Conditions for application developers. This means that my app never gets to see your login and password - hence the difficult login mechanism on first install. Sorry guys, that's how facebook wants it, I can't and won't make any hacks to bypass it, I want the app to make it to Facebook Application Directory one day so I have to play by the rules.
I hope I'll be able to deliver the best Facebook mobile experience to everyone, just give the app some time to mature But I think it's even useable as it is right now!
It's working pretty well right now for beta, what I noticed straight away was it took awhile to post a status change on facebook its self after posting on the phone. Also it's hard to tell if it actually posted or not from the phone. It could be a bit more UI friendly but for the most part for beta its running well. Can't wait to see where this app goes.
The posting is a bit slow, but honestly I can live eith it.
One request. Please make notifications opitional. I really dont need my email and this app going bonkers on a reply. My wifes phone goes off all day and honestly its kind of annoying. I dont personally need notications, but i tolerate the email ones.
You can turn all the email ones off in the settings of facebook thats what I do
Thanks for the app, its already a good app in its beta state! I'm looking forward to the faster wall.
thanks again
Anyone else have the issue when they click "see all friends" it just loads and loads?
See all friends is a bit slow to load right now, that will be taken care of soon.
By the way, since this is XDA-dev I imagine lots of you have access to logcat, so if the application ever crashes on you with a Force Close (which it doesn't ever do when I'm using it, but who knows...) please paste the error trace here. thanks !
Its really simple right now, but its great at what it does have. Great to get status updates and all the replies to them.
Nice app. I can't wait to see where you take this!
Ps. to the guy talking about the friends never loading, my loaded just fine even over an edge network.
For now this is excellent, great job avesik.
are Babble and FBabble the same thing?
fbabble has chat.
To be precise: fbabble is only facebook chat,
babble is (will be) everything else but chat
Thanks. Using Babble, don't need chat. I have AIM for that
Looking good so far. We need a good facebook app that doesn't just wrap the mobile facebook
the app is quite good actually but its a bit slow (while loading) hope that it could speed up abit
good job man, i love the app, i just havent sat down to go through the program, wouldve done it yesterday, but i had to perform major surgery on my xbox 360, had to fix my RROD, but overall its great. It would be pretty sweet if chat could be integrated, im using fbabble, but its got some bugs to be worked out, and facebook chat just seems to be the redheaded stepchild of chat programs
A new version is out, no new features this time, but thanks to some optimizations it should run faster and take up less memory!
I ll be be glad if the next version has notifications
damn admob, i really hate that stuff >.<
good app otherwise

[Q] Anyone notice increasing Spam due to Android apps?

Since buying the N1 in April, I've been very happy with both the phone, and the Android OS.
However, I've been noticing an uptick in the past couple of months of dubious emails hitting my Google account which I registered with my phone. admittedly this is anecdotal, but the nature of the emails leads me to think that some of the app devs whose programs I've installed/tried out, are capturing and selling validated email addresses to third parties. It then seems that some of them (besides increasing the usual Spam being filtered by gmail) go a step further and register the email address to various groups, lists, emails, newsfeeds, etc.
I'm not terribly shocked by this, and since I pretty much limit my gmail usage to using on the phone, I just want to sound people out to determine if I'm just being paranoid, or actually noticing something valid.
Not that it's related, but I'm also running Cyan 6.0.0 (8/27)
Seeing as the market is open for any individual to just slap some crap up for people to download, there is no doubt this is possible. Nothing unique to Android.
One way to attempt to protect yourself in the future would be to sign up with these dev's by adding a tag to your email address like such:
Code:
[email protected]
or
Code:
[email protected]
where '+shadydev1' is incremented to identify who is sending what. Though, the spammers could strip the tags making all this pointless, in which case just do what everyone else does and send them to your Hotmail account
*Edit* Looking at your OP again, I guess youre saying that the DEVs are pulling your email from the phone itself which is much more malicious, making my post pointless.
crachel said:
Seeing as the market is open for any individual to just slap some crap up for people to download, there is no doubt this is possible. Nothing unique to Android.
One way to attempt to protect yourself in the future would be to sign up with these dev's by adding a tag to your email address like such:
Code:
[email protected]
or
Code:
[email protected]
where '+shadydev1' is incremented to identify who is sending what. Though, the spammers could strip the tags making all this pointless, in which case just do what everyone else does and send them to your Hotmail account
*Edit* Looking at your OP again, I guess youre saying that the DEVs are pulling your email from the phone itself which is much more malicious, making my post pointless.
Click to expand...
Click to collapse
Hey, I have not noticed this, but thanks for the tip! Had no idea you could tag in the username like that for GMail. I don't use it much honestly, but perhaps I will
I have my own domain and I have like spam1 spam2 spam3 etc I use... but not quite as flexible
Thanks for the suggestion. Going to start utilizing it. Sorry about the late response, been out of touch for a bit.
With the recent dustup over Facebook, that's exactly the sort of thing I'm suspecting is happening in my situation. Because it really started to amp up when I installed Cyanogen 6.0. Now in no way am I implying something wrong or directly related to Cy's code. It's awesome and I wouldn't trade it for anything. But anecdotally, the level of Spam seems to coincide. And as i don't know enough about the Android OS, not sure if 1) rooting the phone and installing a custom ROM left it more exposed than stock, 2) Some market app(s) I've installed have done a 'Facebook' with my data via some exploit or 3) Stock or rooted, wouldn't make much of a difference because jagoffs are the same no matter where, when or how. They'll find a way.
But as my original query didn't seem to gain much traction, doesn't seem others have experienced any noticible increase as a result of rooting their phones. Btw, I should say not just Spam for viagra type stuff has increased in my gmail account. but what would otherwise seem to be 'legitimate' emails that i have no idea as to their origins. religious groups, a car dealership asking me how I like my new car, etc. And after some research, it seems that variants of my email address will find their way into my inbox. according to google's Help. If I create [email protected], i'll also get email for [email protected], for example.
smashmouth_engineer said:
Thanks for the suggestion. Going to start utilizing it. Sorry about the late response, been out of touch for a bit.
With the recent dustup over Facebook, that's exactly the sort of thing I'm suspecting is happening in my situation. Because it really started to amp up when I installed Cyanogen 6.0. Now in no way am I implying something wrong or directly related to Cy's code. It's awesome and I wouldn't trade it for anything. But anecdotally, the level of Spam seems to coincide. And as i don't know enough about the Android OS, not sure if 1) rooting the phone and installing a custom ROM left it more exposed than stock, 2) Some market app(s) I've installed have done a 'Facebook' with my data via some exploit or 3) Stock or rooted, wouldn't make much of a difference because jagoffs are the same no matter where, when or how. They'll find a way.
But as my original query didn't seem to gain much traction, doesn't seem others have experienced any noticible increase as a result of rooting their phones. Btw, I should say not just Spam for viagra type stuff has increased in my gmail account. but what would otherwise seem to be 'legitimate' emails that i have no idea as to their origins. religious groups, a car dealership asking me how I like my new car, etc. And after some research, it seems that variants of my email address will find their way into my inbox. according to google's Help. If I create [email protected], i'll also get email for [email protected], for example.
Click to expand...
Click to collapse
Yep, as does [email protected], or [email protected]
Has nothing to do with this nonsense thread.
I have yet to get a spam mail past Gmail spam filter, and I have my Nexus rooted and on custom ROMs for a long time.
The scenario you describe theoretically might happen if you installed a "semi-malicious" app that would request your permissions for accessing your account / contact list, and you let it. Just rooting and installing whatever ROM won't get you there.

[Q] Am I missing something?

So, there have been a ton of complaints about the facebook app on windows phone 8. Am I missing something? Why would anyone put an app on thier WP8 phone, when the People Hub ties all that together? I don't even have a facebook app installed, because everything I need to do is done from the hub.I can post an update, check in, see my notifications, whats new specific to my stuff or my friends that I have grouped exclusive.
So what am I missing?
Nothing. Some people are not used to having working things out of the box, so they just download apps to replace what the system already does.
My point exactly. I would even go much more further, I would ban all FB, Twitter... apps from the market since they r not needed at all. Instead, I would want some RDP apps for free, also some good database apps etc...
Good! I thought it was just me! Thanks guys.
Sent from my wicked sexy HTC 8X windows phone using Board Express
There is quite some functionality in the Apps though that is not available in the Hub. It's conversation views in Twitter or Groups in Facebook. If you use those Features you can't rely on the People Hub alone.
StevieBallz said:
There is quite some functionality in the Apps though that is not available in the Hub. It's conversation views in Twitter or Groups in Facebook. If you use those Features you can't rely on the People Hub alone.
Click to expand...
Click to collapse
Groups in facebook? Isn't that the same as Groups in the stock app? I don't do twitter, so cant answer to that. But still have found more functionality as well as easier interface when using the stock app on the phone.
I think OP has to look at things way wider. Maybe you just treat your phone more personal...
1)Facebook app can allow me lend my friend/families the phone and he can have a quick look at his facebook. (more social)
2)Facebook allow me to take control of another account I own( not saying about pages though, not sure WP8 facebook app can allow users to manage the page we owned)
3)respond to friend request.
4)As for myself, I have subscribe to many funny pages and news ones, the endless timeline give me look at what I have missed unlike the facebook/twitter integration,it does limits certain number of news/tweets and we can't scroll down after that.
I think these are the things you missing, might be more when compare to facebook apps on other platform since facebook app on wp has lesser feature.
sylau90 said:
I think OP has to look at things way wider. Maybe you just treat your phone more personal...
1)Facebook app can allow me lend my friend/families the phone and he can have a quick look at his facebook. (more social)
2)Facebook allow me to take control of another account I own( not saying about pages though, not sure WP8 facebook app can allow users to manage the page we owned)
3)respond to friend request.
4)As for myself, I have subscribe to many funny pages and news ones, the endless timeline give me look at what I have missed unlike the facebook/twitter integration,it does limits certain number of news/tweets and we can't scroll down after that.
I think these are the things you missing, might be more when compare to facebook apps on other platform since facebook app on wp has lesser feature.
Click to expand...
Click to collapse
Yea, my friends are goofballs. If I let them have access to my phone, I get crazy posts on FB, and my profile picture suddenly changes to a crotch picture. So, no one gets to screw with my phone except the better half (and now Jr thanks to Kids Corner). But then again, I do the same to them!
And I don't have more than 1 facebook account, but I see where you can add accounts, so maybe someone who has two accounts can try to add an account under thier different one? Might allow it, although, I think it would merge the two, which could become confusing.
And I have not noticed friend requests, so will have to see if I get one recently and see how that works.
I see where your coming from, guess since I am not a power user I don't utilize all the capabilities that FB has, nor the native / 3rd party app.
Thanks for clarifying, FINALLY some one did! Thanks!
Groups are not the same as WP Groups (well, something similar exists with the lists Feature but that's an entirely different Topic).
Facebook Groups can have members and have there own pin wall, calendar, etc. You can use them e.g. to bundle all the Information on a certain Topic like e.g. when you are part of a certain Club. To my knowledge I can't Access those from the People Hub.
I'm only using two of them but those pretty frequentlly. There are other Features not used by everyone but rather important to others that are not available in the People Hub.
Thanks for the info!
Sent from my wicked sexy HTC 8X windows phone using Board Express
It's missing a lot of the interaction you'd get from the website or a third-party app, for instance:
The messaging app does not pick up Facebook message threads, for one (Just chats).
You can't edit your own status updates.
You can't friend/unfriend people.
The Facebook People Hub is meant more for getting the basic info on people that you have on your contacts list and to keep them in the loop on you. That's it. I think these limitations are by design.

[Q] Password protect certain applications?

Is there an application that can password protect certain apps that I choose?
And please do not say Kids Corner as it does not do what I am asking.
It's probably possible (though far from easy), but I'd actually be more inclined to help if you hadn't opened a duplicate thread about this.
Only made second thread about this to attract some attention, 7 months passed since that guy opened his thread and nobody could give a good answer.
To me it's weird that nobody tried to make an app like this still, it would be very popular and help users very much.
Anyways, thank you for replying.
Really, just bumping the other thread was enough, but since we're here anyhow... my idea for how to approach it (and this would take a *lot* of hacking) goes something like this:
1. Create an app (call it X) that has the capability to launch other apps, and filesystem write access.
2. Have X take another app (call it Y) and encrypt its binaries. This prevents anybody from launching it by any means.
3. Tweak the app database to make it so that when you try to launch Y, it instead launches X and passes the id of Y as a parameter to the launcher.
4. X prompts the user for a password to Y. On getting the right one, it decrypts Y's binaries and writes them back to the correct location, then launches Y.
5. When the user (or OS) closes Y, a background process of X notes that Y is closed and re-encrypts it.
Currently we know how to do... well, some of #1, and we think the rest is possible. Given that, #2 isn't too hard. #3 is something I don't have the least notion how to do *right now* but I'm sure it's possible. #4 shouldn't be too hard given #1 and #2. #5 will be a trick - currently, apps have no way to know what other apps are running - but I'm sure it can be done.
It's a large engineering problem blocked by an even bigger research and hacking problem, though. Nothing we'll have soon. You'd never be able to publish it in the store, either, and it would only work for people with hacked phones. It's exactly the kind of *useful* thing that would be possible if Microsoft were willing to let up the restrictions on third-party developers a bit, of course, But for the time being, there are *reasons* nobody has done it yet.
Well the word that I actually was thinking after reading your post was "crap".
It seems only with time (and a whole [email protected]#$ing lot of it) will wp become a true competitor to android, but to be honest I don't think it will come to that.
Thanks for replying GoodDayToDie, I'm freakin' sad that there is no app that can suit my needs, I even tried with kids corner but the screen still needs the password entered like the normal one. Nothing really can make up for what I have in mind.
Cheers mate.
as soon as we can interop unlock all WP devices, it will be pretty easy... if you're able to provide the XAP (uncrypted of course )
i'll be able to "mod" this in for you... which app are we talking about?
@GoodDayToDie: i do'nt think he is looking for real data security here, so encrypting the whole thing shouldnt be required... i think it's more about preventing his gf to read his private messages or something like that
oh btw.: you would need a dev-unlock to deploy the modified XAP then...
tfBullet said:
as soon as we can interop unlock all WP devices, it will be pretty easy... if you're able to provide the XAP (uncrypted of course )
i'll be able to "mod" this in for you... which app are we talking about?
@GoodDayToDie: i do'nt think he is looking for real data security here, so encrypting the whole thing shouldnt be required... i think it's more about preventing his gf to read his private messages or something like that
oh btw.: you would need a dev-unlock to deploy the modified XAP then...
Click to expand...
Click to collapse
You're right tfBullet! I need it for whatsapp, photos, message and games app, mostly to prevent from friends but gf too.
I was thinking it might be possible to mod an app and add password before it can be accessed, although I have no experience in this domain. Many apps in store have this function, like wallet or prive photo apps.
My phone is dev-unlocked as I started a few days ago to study and try to create a simple app for me and my friends.
Modding an app like that would actually be quite hard, because it would break the signature and prevent the app from running. The encryption thing really isn't too hard, although you could skip it anyhow too.
If there was a way to run a program in the background that monitors when certain apps are selected and then prompts when its activated would work, but it would need an unlocked phone. And even under home brew I don't know if its possible to run apps in the background. Yet.
Sent from my Nokia 521 using XDA Windows Phone 8 App
The encryption thing really isn't too hard
Yea, but that's a little extreme. If you can create that password program that runs in the background you could probably have it watch files, apps or pretty much anything. You'd have to password protect the cofig file. And maybe if you can't remember the password after so many attempts you can have the program email the passwords to your email. Just some ideas.
Sent from my Nokia 521 using XDA Windows Phone 8 App
Running software in the background is actually shockingly easy. The trick is getting it to run with better-than-app-sandbox privileges. We're still working on that one. In the meantime, apps can't even read, much less write, to the install location of other apps.
GoodDayToDie said:
Modding an app like that would actually be quite hard, because it would break the signature and prevent the app from running.
Click to expand...
Click to collapse
@GoodDayToDie: actually these .NET apps are pretty easy to decompile, if you're willing to fix the bugs that the decompiler leaves you with...
so there is not really a need for a valid signature, if you're able to compile & sideload the app yourself
the only thing is: you need the decrypted XAP, as far as i know these get decrypted while installation and can be pulled from a interop unlocked device?!
It would be nice to get my fingers on some OEM (Nokia etc..) XAPs, to see if we can find any exploit in them
I know better than probably 95% of this forum what it takes to decompile managed code; I have reverse engineered huge numbers of apps. However, you are missing several important points.
1) Modifications like you suggest are very complicated to automate. It's certainly possible, but it's not simple.
2) Re-installing the app would be a pain. You would really want to do this as an in-place modification, and that means (for store apps) that it would still be signature-checked.
3) Not all apps are managed code; WP8 supports purely native code.
4) Even with managed code, obfuscation can make tinkering with the binary nigh-impossible.
It's just so incredibly stupid that WP is so limited. I know it's under Android big time, but I think even iOS more customizable, right?
Also, is there a message app in the store that has pass option? I searched but found nothing...
I don't believe iOS is any more customizable, no. It has some feature that WP lacks (it ought to; it's been out for years longer and Apple completely controls the hardware it runs on) but it's also missing some features that WP8 offers. In any case, this isn't the thread to have that discussion in.
GoodDayToDie said:
I don't believe iOS is any more customizable, no. It has some feature that WP lacks (it ought to; it's been out for years longer and Apple completely controls the hardware it runs on) but it's also missing some features that WP8 offers. In any case, this isn't the thread to have that discussion in.
Click to expand...
Click to collapse
But with the jailbreak and MobileSubstrate, iOS is extremely customizable, and there are tons of tweaks, that's where Apple gets its new features from
Back to topic, I think the OP would be happy with a solution that locks the "normal" user of his phone out of some apps, so it wouldn't be necessary to modify anything of it, just making the standard launcher (I don't know how it's called, but I mean when you launch the app via home screen or with a toast) ask for a password should be enough.

[Q] why is djamol's account didabled?

I read a thread and saw that his profanities were removed. WTF does that mean. It seemed like he had lots of work being done. And from the sound of it a major achievement for wp8 as far as hacks go. What was this profanity and will his account be enabled again. Is this even real or am I bugging out. Anyone with info on what may have happened. Please reply.
He wasn't killed, so he can continue hacking.
I saw his original message. Many people here made a huge progress in hacking WP, but we are polite. No one tells mods such sh things.
Closing thread as an individual user's account status has nothing to do with WP8 help.

Categories

Resources