Skip to content

Instantly share code, notes, and snippets.

View gHashTag's full-sized avatar
🦄
dao999nft

Vasilev Dmitrii gHashTag

🦄
dao999nft
View GitHub Profile
#import "ViewController.h"
#import <AFNetworking/AFNetworking.h>
@interface ViewController ()
@property (strong, nonatomic) NSDictionary *posts;
@property (strong, nonatomic) NSMutableArray *post;
@end
2014-08-05 17:05:55.347 DivyaLoka[17768:60b] Play Ra
2014-08-05 17:05:55.371 DivyaLoka[17768:60b] Error: Error Domain=com.facebook.sdk Code=5 "The operation couldn’t be completed. (com.facebook.sdk error 5.)" UserInfo=0x9071620 {com.facebook.sdk:ErrorInnerErrorKey=Error Domain=NSURLErrorDomain Code=-1000 "bad URL" UserInfo=0x907eb00 {NSUnderlyingError=0x94768d0 "bad URL", NSLocalizedDescription=bad URL}, com.facebook.sdk:HTTPStatusCode=200, com.facebook.sdk:ErrorSessionKey=<FBSession: 0x907fe70, state: FBSessionStateOpen, loginHandler: 0x907e920, appID: 1436428276645325, urlSchemeSuffix: , tokenCachingStrategy:<FBSessionTokenCachingStrategy: 0x907ff70>, expirationDate: 2014-10-03 17:29:27 +0000, refreshDate: 2014-08-05 09:10:42 +0000, attemptedRefreshDate: 0001-12-30 00:00:00 +0000, permissions:(
installed,
"public_profile",
email,
"user_friends"
)>}
2014-08-05 17:05:55.444 DivyaLoka[17768:60b] You're logged in as
2014-08-05 17:05:55.444 DivyaLoka[17768:60b] Play Ra
2014-08-05 17:05:55.875 Div
{
"data": [
{
"id": "746086925448119_746969482026530",
"from": {
"id": "1512121862336543",
"name": "Play Ra"
},
"to": {
"data": [
@gHashTag
gHashTag / gist:22eb63b2d7a3e9b0dada
Created August 5, 2014 13:39
Мастерская здоровья и красоты.
2014-08-05 17:34:41.915 DivyaLoka[18054:60b] Play Ra
2014-08-05 17:34:41.918 DivyaLoka[18054:60b] Error: Error Domain=com.facebook.sdk Code=5 "The operation couldn’t be completed. (com.facebook.sdk error 5.)" UserInfo=0x909e5d0 {com.facebook.sdk:ErrorInnerErrorKey=Error Domain=NSURLErrorDomain Code=-1000 "bad URL" UserInfo=0x908aa00 {NSUnderlyingError=0x8e78fd0 "bad URL", NSLocalizedDescription=bad URL}, com.facebook.sdk:HTTPStatusCode=200, com.facebook.sdk:ErrorSessionKey=<FBSession: 0x8fbd760, state: FBSessionStateOpen, loginHandler: 0x8fbc210, appID: 1436428276645325, urlSchemeSuffix: , tokenCachingStrategy:<FBSessionTokenCachingStrategy: 0x8fbd850>, expirationDate: 2014-10-03 17:29:27 +0000, refreshDate: 2014-08-05 09:10:42 +0000, attemptedRefreshDate: 0001-12-30 00:00:00 +0000, permissions:(
installed,
"public_profile",
email,
"user_friends"
)>}
2014-08-05 17:34:42.002 DivyaLoka[18054:60b] You're logged in as
2014-08-05 17:34:42.002 DivyaLoka[18054:60b] Play Ra
2014-08-05 17:34:42.946 Div
- (void)viewDidLoad
{
[super viewDidLoad];
self.loginView.readPermissions = @[@"public_profile", @"email", @"user_friends"];
[FBRequestConnection startWithGraphPath:@"/{746086925448119}/feed"
parameters:nil
HTTPMethod:@"GET"
completionHandler:^(
FBRequestConnection *connection,
id result,
2014-08-07 18:09:59.131 DivyaLoka[18724:60b] Error: Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: bad request (400)" UserInfo=0x8e4f9b0 {NSErrorFailingURLKey=https://graph.facebook.com/v2.0/746086925448119/feed?access_token=CAAUabIUsvc0BANW1q3mco6qv0h3JBhdTZBNSMwh1obtosWt9hkOgvbKV2xTQcxrs0lS1QjiuBfJZBeLzKYt5mW2cR9k6Oo644cXww78SnI1aAGjm3vER0w8wo2VQ5xRHbNEteclnioV1hSEsATGiJZCDpksqOpUgi5yW9tWZAAZA9DthTBlzTv09FCZBiUZAP4NntcoH5cGW1QTJj0qplCbAU5U1MOQjMMZD, com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x8e8d110> { URL: https://graph.facebook.com/v2.0/746086925448119/feed?access_token=CAAUabIUsvc0BANW1q3mco6qv0h3JBhdTZBNSMwh1obtosWt9hkOgvbKV2xTQcxrs0lS1QjiuBfJZBeLzKYt5mW2cR9k6Oo644cXww78SnI1aAGjm3vER0w8wo2VQ5xRHbNEteclnioV1hSEsATGiJZCDpksqOpUgi5yW9tWZAAZA9DthTBlzTv09FCZBiUZAP4NntcoH5cGW1QTJj0qplCbAU5U1MOQjMMZD } { status code: 400, headers {
"Access-Control-Allow-Origin" = "*";
"Cache-Control" = "no-store";
Connection = "keep-alive";
"Co
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import Collapsible from 'react-native-collapsible';
import Accordion from 'react-native-collapsible/Accordion';
import React, { Component } from 'react'
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native'
const FBSDK = require('react-native-fbsdk')
const {
LoginButton,
import React, { Component } from 'react'
import { connect } from 'react-redux'
import { emailChanged, passwordChanged } from '../actions'
import { Card, CardSection, Input, Button } from './common'
class LoginForm extends Component {
onEmailChange(text) {
this.props.emailChanged(text)
}
import React, { Component } from 'react'
import { connect } from 'react-redux'
import { emailChanged, passwordChanged } from '../actions'
import { Card, CardSection, Input, Button } from './common'
class LoginForm extends Component {
onEmailChange(text) {
this.props.emailChanged(text)
}